Windows Command

This task is only available on Windows systems. This task allows you to run executable programs (.exe) or batch files (.bat). The task launches a native windows application called WinCommand.exe. WinCommand.exe will actually run your application, or batch file. This Windows Command Task generally provides better results, for windows batch files, than the standard Command Task. Executable programs (.exe) should perform similarly using, either the Command Task, or the Windows Command Task.

Command Line
Enter the command line. If you want to launch an executable file, or batch file, enter the full pathname to the file. Example:
c:\windows\notepad.exe
If the path to your executable file or batch file includes spaces, enter the pathname to the file in quotes. Example:
"c:\program files\mybat.bat"
You can enter a command-line parameter, to pass to your executable file, or batch file. You should enter a space between the file path, and the parameter. Leave spaces between any subsequent parameters. Example:
"c:\program files\mybat.bat" par1 par2

This field also supports dynamic variables. For example, to launch a batch file, and pass it the current time, use:
c:\data\test.bat $%DATE::hh:mm:ss%$

Program Arguments
You can enter your arguments separately instead of doing so on the commandline. If you enter the arguments here, the CommandLine should only contain the path to the .exe or .bat. The arguments need to be separated by spaces. Any argument which has spaces in it has to be enclosed in "quote s".
Example: arg1 "arg 2" 3 four "Fifth argument"

Working Directory
The working directory is required for your program, or script, to run correctly. Use the full pathname to the Working Directory. You do not need to enclose the working directory in quotes, even if the pathname has spaces in it.

Termination Time
The termination time is the maximum time that your program can run. The task will terminate your program, if it is still running, after the maximum allowed time. Enter a value = 0, if you do not want to terminate your program. In this case, the task will wait indefinitely, for your task to finish.

Polling interval
While your program is running, the task continuously polls your program. The task will check if your program has completed. It will obtain the Exit Code value, when the program exits. You can select the polling interval (default = 15 seconds). The minimum interval is 1 second. We recommend using 15 seconds.