RoboTask User's Guide
Keyword Index
Home page



IconQuick Start Guide
IconSeveral practical recommendations
IconMenus
IconActions
IconTriggering Events
IconAppendix
IconOther software

© 2004-2016 Neowise.com

Run Command-Line Utility

Top  Previous  Next

This action is intended for console command utilities. Sometimes it is important not only perform such utility with certain parameters but analyze output data, that is, the text displayed on the screen by the utility.

The action allows to save an output stream of the utility into a variable. Then in the task you can save this information into a file or analyze the output text.

 

GeneralConsole

 

Program Name

Specify the file name of an/the utility. Unlike the action Run Program/Open Document Parameters, it is prohibited specifying of a document file in this field. Only the name of the executed document must be specified here.

You can specify the parameters of a command line here. For convenience, it is possible to type each parameter on a new line. When executing the action, the RoboTask forms the common parameter line from multi-line text.

 

Default Folder

Specify the folder name, which will be current when the utility starts.

 

Assign the Output Text into Variable

If you need to save the output text, switch on this checkbox and specify a variable name. Then you can use this variable for the next processing.

 

Convert to ANSI format

Some utilities output a text with non-latin symbols in OEM format (or in the format DOS). In this case switch on this checkbox for automatically transformation of the string in ANSI coding.

 

Assign Exit Code into Variable

If you need to save the exit code of the utility into a variable, switch on this checkbox and input the variable name. The exit code is a number. As a rule, it is 0 when it works regularly or an error code when some trouble appears. It depend on the started utility.

 

If Exit Code <> 0

The action when the exit cod is not 0. Select one of the 3 alternatives:

Nothing
Stop the task
Raise the Error.

On default it is Nothing

 

note Related Topics

Run Program/Open Document

Print Document

Send Network Message

Send Keystrokes

Shift Keys State

Pause

Log Off

SQL Query

Wait for process finish

Wait for Process Start

Comment

Terminate Process