A file location can be always viewed using the Open Containing Folder Command (File Menu). You can specify a file path to a document shortcut using the Shortcut Properties window using the following three ways:
● Relative
path of the file such as ".\Drivers\a.drv," where the
dot represents the containing document folder/directory. You can also
use ".." to designate a folder above the folder such as "..\Drivers\a.drv")
or path that start with "\" designate the current drive for
example "\MyProject\Drivers\a.drv". The advantage of the relative
path is that you can move the project files or folder(s) to a different
folder without needing to change the path designation in the document
shortcut, provided the relation to its containing document folder is maintained.
The containing folder is the document where the path is used, for example
when specifying a driver file path and the driver file path is included
in the system document (driver shortcut) then the path is relative to
the system document folder.
The relative path for run-time objects such as libraries that are included
in your project documents (driver, system, or program), is always calculated
relative to the application current working directory which is the folder
where the application EXE (when you Build the project) resides.
Note: To ensure that ATEasy saves files using relative paths
rather than absolute paths, save the project file first before saving
individual files.
The following describes the relationship between the different ATEasy files:
● Project (.prj/.pjt) is relative to a Workspace file folder (.wsp)
● Program (.prg/.prt) that its shortcut is inside a project is relative to the Project file folder.
● System (.sys/.syt) that its shortcut is inside a project is relative to the Project file folder.
● Driver
(.drv/.drt) that its shortcut is inside a System is relative to the System
file folder.
● Absolute path of the file can be shown as "C:\ATEasy\Drivers\a.drv." Although specifying an absolute path makes it easy to know exactly where a file is located, you need to re-specify this path every time you move the file.
● BASE.EXT, no folder is specified in the shortcut for example "a.drv". ATEasy searches for this file using the path you entered in the Directories tab of the Tools Options dialog. For more information on this tab, see Directories Options.
(v9.0)
- File name can also contains Path Variable. When specifying
the file path, you can use the browse button to navigate to
the directory and select the file, or create an expression that contains
Path Variables. Use the right arrow button
to insert a Path Variable from a list of predefined
variables. Path Variable has the format $(PathVariableName),
where PathVariableName can be
one of the items displayed in the menu or you can also type a Windows
Environment Variable
name. See Path
Variables for more information.