RUN CMD: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
{{Command|syntax=RUN_CMD <filename>, [<text to pass to exe>], [<add quotes>], [<wait for it to finish>] | {{Command|syntax=RUN_CMD <filename>, [<text to pass to exe>], [<add quotes>], [<wait for it to finish>] | ||
|description=:Run a system command. | |description=:Run a system command. This command should be used instead of [[RUN_EXE]] when the program you want to run resides in one of the fodlers listed in the current Windows Path. if you know the full pathname of the program, or it is resides in the current macro folder, then you can use [[RUN_EXE]]. | ||
|param1=<exe filename>|param1_desc=Name of command to run. | |param1=<exe filename>|param1_desc=Name of command to run. |
Latest revision as of 17:34, 16 August 2010
Command
- RUN_CMD <filename>, [<text to pass to exe>], [<add quotes>], [<wait for it to finish>]
- Run a system command. This command should be used instead of RUN_EXE when the program you want to run resides in one of the fodlers listed in the current Windows Path. if you know the full pathname of the program, or it is resides in the current macro folder, then you can use RUN_EXE.
Parameters
- <exe filename>
- Name of command to run.
- [<text to pass to exe>]
- Command line text to pass to command. 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 command and then continue with the macro. 1 to wait until the command finished before continuing with the macro. Default is 1.
Example
- RUN_CMD "Notepad.exe", "MyFile.txt"