| AppCtrlScript | |
| Help |
|
Applies to |
AppCtrlScript (Module: wmACScr1.dll) |
|
Group |
Execution |
|
See also |
RUNASYNC, SHELLSYNC, EXECSHELL |
This command executes the given commandline (if only one parameter) or connects the two given parameters together and executes the resulting commandline (in a new process).
It is a synchroneous program call - means that the SCRIPT DOES NOT CONTINUE UNTIL THE CALLED PROCESS HAS FINISHED.
Attention: If the called program ends up in an infinite loop, pops up with a messagebox or does remain in memory after finished (because of an error), your script will not be continued until the called process finishes anyhow or is killed by the user.
Important note: Experiences show that this command often causes the called program hang in memory especially when the called program uses windows (either if they are hidden). Therefore in most cases it is much better using the SHELLSYNC or EXECSHELL commands. For windowless applications this might be preferred command, for all other executables you should use the other related commands.
RUNSYNC <Commandline>
RUNSYNC <Executable>, <Parameters>
EXECSYNC <Commandline>
EXECSYNC <Executable>, <Parameters>
|
Part |
Description | |
| <Commandline> | Complete commandline. If the executable contains spaces in filename then you have to enclose the filename in quotation marks ("). If you hardcode the commandline in script code you have to escape them by writing double quotation marks (""). | |
| <Executable> | Executable (program file) without parameters | |
| <Parameters> | Complete parameter string to be passed to the executable. | |
|
| ||
RUNSYNC """C:\Program File\MyApp\MyExe.exe"" /config"
RUNSYNC "C:\Notepad.exe", "c:\Work\Notes.txt"