How do I...?

Get System Folder Paths

AutoPlay Media Studio includes an action to get the paths to various folders on your computer. To accomplish this, use the action Shell.GetFolder.

As an example, we will get the path to the user's desktop, and store it in a variable path_to_desktop:

  1. Insert the following code into an event in your program:

path_to_desktop = Shell.GetFolder(SHF_DESKTOP);