SHELLEXECUTE                                                 Statement

SHELLEXECUTE verb, file [,parms]

Description

SHELLEXECUTE executes an external program as a separate process. The first parameter, verb, tells what action should be taken with the file in the second parameter. The third parameter contains any parameters that are required.

Table 23:

Verb

What it does

Open

Runs a program

Print

Sends a document to the printer (not available on all Windows CE devices)

Explore

Opens Pocket Internet Explorer

 

Example

REM SHELLEXECUTE Example

'Register a third party control

shellExecute "open","regsvrce.exe",_

"\windows\s309picture.dll"

'print a document (not on all devices)

ShellExecute "print","myReport.doc"

'open a picture using web browser

shellExecute "explore", "myPict.jpg"

Output

(varies)

Related Items