The LaunchProcess Method of the Generic ActiveX Object launches a new process which blocks execution until the process terminates.
LaunchProcess (Method of the Generic ActiveX Object) Syntax var iRetVal = objGeneric.LaunchProcess(strImageName, strCommandLine);
Parameters
Items listed in this section indicate parameters, or attributes which can be set.
Name Possible Values Description
Default Value strImageName String Filename of application to execute N/A strCommandLine String Optional command line parameters N/A
Return Values
Name Description iRetVal The return code of the launched process
Examples
The following javascript example launches CtlPanel and displays the return value when the process completes:
<script> var objGeneric = new ActiveXObject("PocketBrowser.Generic"); alert('Return code was: ' + objGeneric.LaunchProcess('\\application\\ctlpanel.exe', '')); </script>
Copy example to clipboard
Additional Information
Supported Platforms Windows CE, Windows Mobile Persistence Runs immediately. Min. Requirements None.