RUN EXE: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
No edit summary
MikeO (talk | contribs)
No edit summary
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|syntax=RUN_EXE <exe filename>, [<text to pass to exe>], [<add quotes>]
[[:Category:Miscellaneous|{{Up}}]]
|description=*DESCRPTION*    ---->>>> (wait for it to finish)


|param1=<exe filename>|param1_desc=
{{Command|syntax=RUN_EXE <filename>, [<text to pass to exe>], [<add quotes>], [<wait for it to finish>]
|param2=[<text to pass to exe>]|param2_desc=
|description=:Run an executable file. if the file does not reside in the current macro folder, then you must supply the complete pathname. If you want to run a system command (a program that resides in one of the fodlers listed in the current Windows Path), then you should use [[RUN_CMD]].
|param3=[<add quotes>]|param3_desc=
 
|param1=<exe filename>|param1_desc=Name of EXE to run
|param2=[<text to pass to exe>]|param2_desc=Command line text to pass to EXE. Default is no text.
|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=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_EXE
:RUN_EXE "MyApp.exe", output_file$
:RUN_EXE "MyApp.exe", "DataFile.txt", 0, 1


:For an example macro see [[Get_Op_Tool_Path]] [[Run_Post]]
[[Category:Miscellaneous]]
[[Category:Miscellaneous]]

Latest revision as of 17:32, 16 August 2010

Up

Command

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


Run an executable file. if the file does not reside in the current macro folder, then you must supply the complete pathname. If you want to run a system command (a program that resides in one of the fodlers listed in the current Windows Path), then you should use RUN_CMD.

Parameters

<exe filename>
Name of EXE 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_EXE "MyApp.exe", output_file$
RUN_EXE "MyApp.exe", "DataFile.txt", 0, 1
For an example macro see Get_Op_Tool_Path Run_Post