Windows Command

This feature is only available on Windows systems and 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 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 simply launch an executable or batch file, browse to it, or enter it manually. Example:
c:\windows\notepad.exe
If the path to your executable or batch file includes spaces, enter the path to the executable in quotes.  Example:
"c:\program files\mybat.bat"
If you want to enter a commandline paramater to pass to your executable or batch file, enter a space between the 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, command or script to run correctly.  This is particularly true if the program or script uses relative paths to access and output to files.  Just use the browse button to set the Working Directory.  You do not need to enclose the working directory in quotes even if the path has spaces in it.

Environment Variables
This is an array of strings, each element of which has environment variable settings in format 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 or script 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 or script is running, the task continuously polls your program/script to see if it has completed and to obtain the Exit Code value when it exits.  You can select the polling interval (default = 15 seconds). The minimum interval is 1 second.  We recommend using 15 seconds unless you absolutely need quick feedback as soon as your task completes.  The scheduling data in the Schedule Tasks table will be updated only when the task obtains an Exit Code value from your program or script.