TSTool / Command / SetWorkingDir
SetWorkingDir command sets the working directory for following commands.
The working directory is normally set in one of the following ways,
with the current setting being defined by the most recent action that has occurred:
- The startup directory for the TSTool program,
- The directory containing the most recently opened or saved command file.
- The directory specified by a
- The directory specified by File / Set Working Directory menu in TSTool.
In most cases, a
SetWorkingDir command is not needed and should be avoided because it may complicate commands and troubleshooting.
However, for complicated command files that process data in multiple directories,
it may be useful to change the working directory during processing.
Setting the working directory to an absolute path causes all relative paths for
input and output files to be appended to the working directory.
Relative paths that use
../ can be specified to move up and down a directory tree.
The current working directory during processing is reset to the initial working directory
(the location of the command file) each time that the commands are run.
In any case, it is recommended that paths used in command parameters are specified using relative paths (relative to the command file) so that command files and associated data files can be easily moved from one computer to another.
The following dialog is used to edit the command and illustrates the command syntax.
SetWorkingDir Command Editor (see also the full-size image)
The command syntax is as follows:
|The working directory that should be used. Specify a relative path (e.g.,
||None – must be specified.|
||Indicate the run mode in which the command should be applied, one of:
See the automated tests.
Messagecommand - can be used to output the working directory