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%$

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.

Environment Variables
Enter an array of strings. Each element of the array, defines a single environment variable setting. The format for each environment variable is name=value. You should separate each name=value pair, by a delimiter character. You can choose the delimiter to separate each element.  The default delimiter is ^.  If any of your variable name=value pairs contains the ^ character, then you should set another character, as your delimiter. The delimiter cannot be "=", or any other character, that appears in your name=value pairs.
Example of correctly formatted environment variables, on windows systems:
PATH=c:\test;c:\test2;c:\test3^TEMP=c:\temp

This field also supports dynamic variables.  For example, to launch a batch file and set the variable 'CUSTOM_DATE', use:
CUSTOM_DATE=$%DATE::Qqq dd, YY HH:mm:ss am_pm%$
This will set the variable CUSTOM_DATE in the batch file to: Aug 21, 2002 10:21:23 AM etc..

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.