Predefined Path Variables

Predefined path variables are path variables that set to some of the most commonly used folders. You can use path variables in several option dialogs, such as the Project Settings dialog. Path variables are not case sensitive.

Table 3.12: Predefined Path Variables

Variable

Value

%APPDATA_DIR%

The current user’s roaming application data folder.

%DESKTOP_DIR%

The Windows desktop folder.

%LOCAL_APPDATA_DIR%

The current user’s non-roaming application data folder.

%MYDOCUMENTS_DIR%

The current user’s documents folder.

%PROGRAM_DIR%

Folder that contains the Source Insight program.

%PROGRAMFILES_DIR%

The Windows Program Files folder. Eg. C:\Program Files

%PROGRAMFILESX86_DIR%

The 32-bit Program Files folder. Eg. C:\Program Files (x86)

%PROJECT_DATA_DIR%

The current project’s data directory, which contains the data files maintained by Source Insight.

%PROJECT_SOURCE_DIR%

The current project’s source directory root, which is set in Proj­ect Settings.

%PROJECT_NAM%E

The simple name of the current project, with no extension or path.

%SHARED_DOCUMENTS_DIR%

The public or shared Windows document folder.

%SOURCEINSIGHT_USER_DIR%

The current user’s Source Insight document folder. This is typi­cally C:\Users\<user-name>\Documents\Source Insight 4.0

%TEMP_DIR%

The temp file directory where Source Insight creates temp files.

%WINDOWS_DIR%

The Windows directory.