ShellOpen
Previous  Top  Next

Prototype

ShellOpen(FileName)

Description

It opens the shown file by using the stored application.

Parameters

FileName: string showing the file to be open and its path.

Returned value

None.

Notes

File can be open only if the application is available.

Example

//file name request 
File:= 'c:\dati.txt';

// It checks the file existence
Esistente:=FileExists(File);

//If file exists then…
If Esistente = True then

Begin  
// It opens the file  
ShellOpen(File);  
 
// file printin  
ShellPrint(File);  
End  
 
//If the file doesn't exist, it shows a message.
Else Applicationlog(_CurrentAgent,'The file is not found');