LaunchProcess Method

PocketBrowser 3.x API

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);

ParametersW Toggle 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

axReturns Toggle Return Values

Name Description
iRetVal The return code of the launched process

Examples Toggle 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 Copy example to clipboard

Info Toggle Additional Information

Supported Platforms Windows CE, Windows Mobile
Persistence Runs immediately.
Min. Requirements None.