ShellExecute

Top  Previous  Next

Prototype

 

ShellExecute(FileName, boolWait)

 

Description

 

Executes a file and, if required, waits for the end of execution.

 

Parameters

 

FileName: A string containing a valid path and filename.

 

BoolWait: true or false value.  If true, the function waits for the end of application..

 

Returned value

 

None.

 

Notes

 

None.

 

Example

 

 

// Plays the audio file asynchronously just once

PlaySound('c:\sound\startmail.wav', False, False);

 

// Waits one second

Wait (1000);

 

// Launch an e-mail program

ShellExecute('C:\Programs\Internet\mail.exe',True);

 

// Executes other operations...