AppCtrlScript

MAY Computer

Help

SHELLSYNC

Applies to  

AppCtrlScript (Module: wmACScr1.dll)

Group  

Execution

See also  

SHELLASYNC, RUNSYNC, EXECSHELL

This command executes the given commandline (launches 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.

For windowless applications the RUNSYNC command might be preferred command, for all other executables you should use this command.

Syntax

SHELLSYNC <Commandline> 

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 ("").

 

Samples

SHELLSYNC """C:\Program File\MyApp\MyExe.exe"" /config"