AppCtrlScript

MAY Computer

Help

RUNASYNC

Applies to  

AppCtrlScript (Module: wmACScr1.dll)

Group  

Execution

See also  

RUNSYNC, SHELLSYNC, EXECSHELL

This command executes the given commandline (if only one parameter) or connects the two given parameters together and executes the resulting commandline.

It is a asynchroneous program call - means that the SCRIPT DOES CONTINUE IMMEDIATELY WITH THE NEXT LINE OF CODE.

For synchroneously calls use the RUNSYNC or SHELLSYNC commands.

Syntax

RUNASYNC <Commandline>
RUNASYNC <Executable>, <Parameters>
EXECASYNC <Commandline>
EXECASYNC <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.

 

Samples

RUNASYNC """C:\Program File\MyApp\MyExe.exe"" /config"
RUNASYNC "C:\Notepad.exe", "c:\Work\Notes.txt"