Path Variables

Version 7.0, 9.0

Path Variables(s) are used for specifying Document, Library and External Tools in a dynamic manner. Path Variable has the format $(PathVariableName), where PathVariableName can be one of the items displayed in the Path Variable menu that can be opened by the right arrow button or alternatively you can type the variable directly in the text box used to specify the path for the document or library. Beyond the list of variables displayed in the Path Variable menu you can also specify a Windows Environment Variables name.

The following arguments represent the predefined Path Variable variables:

 

Name

Argument

Result Example

Description

ATEasy Drive

$(ATEasyDrive)

C:

ATEasy installation drive

ATEasy Folder

$(ATEasyDir)

C:\Program Files (x86)\ATEasy

ATEasy installation folder

Program Files Folder

$(ProgramFiles)

C:\Program Files (x86)

Windows Program Files folder

Windows Drive

$(WindowsDrive)

C:

Windows drive

Windows Folder

$(WindowsDir)

C:\Windows

Windows folder

Windows System Folder

$(WindowsSystem)

C:\Windows\System32

Windows System folder

Workspace Drive

$(WorkspaceDrive)

C:

Current workspace drive

Workspace Folder

$(WorkspaceDir)

C:\Program Files (x86)\ATEasy 9.0\Examples

Current workspace folder

Workspace Base File Name

$(WorkspaceFileBase)

Examples

Current workspace file base name (no file extension)

Project Drive

$(ProjectDrive)

C:

Current project drive

Project Folder

$(ProjectDir)

C:\Program Files (x86)\Examples

Current Project folder

Project Base File Name

$(ProjectFileBase)

Language

Current project file name

Project File Name Extension

$(ProjectFileExt)

prj

Current project file extension

Project Target Drive

$(AppDrive)

C:

Current project target file drive. See in the Project Properties - Project page

Project Target Folder

$(AppDir)

C:\Program Files (x86)\Examples

Current project target file folder. See in the Project Properties - Project page

Project Target Base File Name

$(AppFileBase)

Language

Current project target base filename. See in the Project Properties - Project page

Project Target File Extension

$(AppFileExtr)

exe

Current project target file extension. See in the Project Properties - Project page

Item Drive

$(ItemDrive)

C:

Current file drive

Item Folder

$(ItemDir)

C:\Program Files (x86)\Examples

Current (selected object document) file folder

Item Base File Name

$(ItemFileBase)

language

Current (selected object document) base file name

Item File Extension

$(ItemFileExt)

prg

Current (selected object document) file extension

Current Text

$(CurText)

while

Current (selected object) text

Environment Variable

$(USERNAME)

rony

Windows Environment Variable, to see the current list, open the Windows command prompt and type 'set'

Examples

 

Path Variable Expression

Result Example

$(ATEasyDir)\Examples\Examples.wsp

C:\Program Files (x86)\Examples\Examples.wsp

.\$(ProjectFileBase).prg

.\Language.prg

$(ItemDir)\$(ItemFileBase).pgt

C:\Program Files (x86)\Examples\Language.pgt

$(SystemRoot)\Notepad.exe

C:\Windows\Notepad.exe ( assuming SystemRoot environment variable is C:\Windows)

$(UserProfile)\Documents\MySetting.ini

C:\Users\RonY\Documents\MySetting.ini

See Also

Customize - Tools Page, Customizing the Tools Menu, DLL Properties, Driver Shortcut Properties - General, Project Properties - General Page, Shortcuts, Documents, and their Properties, File Paths