Some tasks need to be modified on the appliance.
- Remove "start /wait " from the command line of any application task (don't forget the space after wait).
- Remove "call " from the command line of any application task that runs a .bat file.
- Remove quotes that were in the command line, for instance:
"install firefox.bat"
would become:
install firefox.bat - If there is an application task in which you have uploaded a file, and the command line is a dos based command, say 'net use' or 'netsh' then this task will need to be modified. Create a new .bat file and copy/paste the command from the K2 to the .bat file and save it. Now .zip the contents of the .bat file and other file you had associated with the task. Upload this as your new file and then replace the command line in the UI as the name of the .bat file.
- Any application task that contains a VBSscript file now needs to have cscript in the command line field of the task, so 'file.vbs' becomes 'cscript file.vbs'
- Any application task that contains a .cmd file will need to be altered. The .cmd file can be downloaded and renamed as a .bat file, then uploaded back to the task. If the .cmd file requires parameters, then a .bat file will need to be created with the appropriate syntax to run the file, then .zipped up with the .cmd file and uploaded to the K2, the name of the .bat file would then be put into the command line of the K2. Lastly, if the .cmd file does not require any parameters, it can be uploaded as a Windows Script Task.
The reason for this change is because previous versions of the SDA executed all tasks from a .bat script, so these commands were needed to control the timing and execution of the tasks. The task engine is an executable that tracks each task and performs the timing and execution of them.