DriveWorks Pro 15: Run Command Line with Arguments [send feedback...]

Run Command Line with Arguments

This Specification Flow Task will run a command line argument. If a result is generated, it can be returned to a constant. If an error is generated, it can be returned to a constant. A timeout can be set, after which DriveWorks will continue to run. If the timeout is reached before the command line has fully run, then it will not return a result or error string.

Run Command Line with Arguments properties

Property NameDescription
TitleChanges the Title (not the name) of the task.
Command line argumentsSingle string representing all of the command line arguments required
Results ConstantThe name of the constant that any results string will be posted
Error ConstantThe name of the constant that any error strings will be posted
TimeoutTimeout in seconds, after which no errors or results will be returned, and DriveWorks will continue. The command line will still be executed

Examples for the Command line arguments property

ExampleDescription
/c "C:Program Files\CopyDocuments.bat"Will run the batch file CopyDocuments from the command line when the task is run. Note quotes required when spaces exist in the path.
/c notepad.exeWill run notepad.
/c notepad.exe C:\DriveWorks\Notes.txtWill run notepad and open the text file named Notes.
"/c ""C:\DriveWorks\"&DWVariableProgramToRun&""""Use this example when the name of the program to run is calculated from a variable. Note the opening and closing quote marks. Will run the program calculated from the variable ProgramToRun from the command line when the task is run. This property can be made Dynamic, allowing a variable to be selected from the Rules Builder.

Table of Contents