RUN CMD: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
No edit summary
MikeO (talk | contribs)
No edit summary
Line 1: Line 1:
[[:Category:Miscellaneous|{{Up}}]]
[[:Category:Miscellaneous|{{Up}}]]


{{Command|syntax=RUN_CMD <RUN_CMD>, [<text to pass to exe>], [<add quotes>], [<wait for it to finish>]
{{Command|syntax=RUN_CMD <exe filename>, [<text to pass to exe>], [<add quotes>], [<wait for it to finish>]
|description=:
|description=:Run a system command.


|param1=<RUN_CMD>|param1_desc={{RUN_CMD}}
|param1=<exe filename>|param1_desc=Name of command to run.
|param2=[<text to pass to exe>]|param2_desc={{text to pass to exe}}
|param2=[<text to pass to exe>]|param2_desc=Command line text to pass to EXE. Default is no text.
|param3=[<add quotes>]|param3_desc={{add quotes}}
|param3=[<add quotes>]|param3_desc=Set to 0 to use the text as supplied, 1 to to add quotes around it. Default is 1.
|param4=[<wait for it to finish>]|param4_desc={{wait for it to finish}}
|param4=[<wait for it to finish>]|param4_desc=Set to 0 to start the EXE and then continue with the macro. 1 to wait until the EXE finished before continuing with the macro. Default is 1.
}}
}}


===Example===
===Example===
:RUN_CMD
:RUN_CMD "Notepad.exe", "MyFile.txt"


[[Category:Miscellaneous]]
[[Category:Miscellaneous]]

Revision as of 17:29, 16 August 2010

Up

Command

RUN_CMD <exe filename>, [<text to pass to exe>], [<add quotes>], [<wait for it to finish>]


Run a system command.

Parameters

<exe filename>
Name of command to run.
[<text to pass to exe>]
Command line text to pass to EXE. Default is no text.
[<add quotes>]
Set to 0 to use the text as supplied, 1 to to add quotes around it. Default is 1.
[<wait for it to finish>]
Set to 0 to start the EXE and then continue with the macro. 1 to wait until the EXE finished before continuing with the macro. Default is 1.


Example

RUN_CMD "Notepad.exe", "MyFile.txt"