Windows File Paths
Windows commonly uses a single backslash in paths. However in double quoted strings a single backslash is used to denote an escape character (as seen above) so a double backslash must be used to denote a single backslash in a path.
Following are examples of the recommended way to define windows file paths:
- "abc.xyz" - file in same folder as the project.
- "..\\abc.xyz" - file one folder up from the project.
- "ghi\\abc.xyz" - file in the "ghi" subfolder of the project.
- "c:\\temp\\abc.xyz" - absolute path to the file on c: drive.
- "\\\\server\\temp\\abc.xyz" - absolute path to the file on a server.
When printing out strings the escape backslash will not be printed, so "..\\abc.xyz" will appear as "..\abc.xyz".
The forward slash, '/', can be used instead of the backslash in paths, so it may be preferable to use forward slashes for readability. ABSOLUTE_PATH and LOG_FILE_PATH will always return paths using backslashes, however.
A single dot, '.', may be used to represent the 'current' folder, so ".\\abc.xyz" is the same as "abc.xyz".
XJTAG v4.2.5
