ShellOpen |
Top Previous Next |
Prototype
ShellOpen(FileName)
Description
Opens a file by using the registered application.
Parameters
FileName: A string containing a valid path and filename.
Returned value
None.
Notes
File can be open only if the application is available.
Example
// file name variable File:= 'c:\data.txt';
// Checks for the file bIfExists:=FileExists(File);
// If file exists then… If bIfExists = True then
Begin // opens the file ShellOpen(File);
// file printing ShellPrint(File); End
// If the file doesn't exist, log a message. Else ApplicationLog('File not found');
|