If your command line is very long, consider using -commandFile to specify a command file for your arguments.
There are practical reasons for using a command file:
•The first is to specify command lines that are longer than the operating system supports.
•The second is to make managing the command line easier. A command file with each argument on it's own line is a lot easier to understand.
How long is too long?
Cmd Prompt |
Windows 7 and earlier |
256 chars |
Cmd Prompt |
Windows 8 and later |
8191 chars |
Powershell |
32766 chars |
Specify a file from which to read the command line arguments.
Useful when command lines become unwieldy or longer than the windows command size limits.
Use -- to insert comments into the file, including when commenting out option.
Examples:
-commandFile c:\flowTraceTests\testMacro1.cf
-commandFile "c:\flowTraceTests\testMacro1.cf"
For any argument that can be supplied to a command in a command file, you can also specify an environment variable substitution.
-directory %DIR%
-program %DIR%\testProgram.exe
The environment variables must have been set prior to starting Bug Validator.
You cannot specify a command with an environment variable substitution.