|
Shellexecute |
Top Previous Next |
|
In some cases we want to let the computer figure out what application to start for a given document. This can be accomplished with ShellExecute written by Erwin Kalvelagen. For instance, when we call: h shellexecute demo.html
Windows will launch the web browser and show demo.html. This works correctly, irrelevant whether the user installed Microsoft Internet Explorer or Netscape’s web browser.
Usage
The command line for ShellExecute looks like:
SHELLEXECUTE filename args
Additional parameters can be specified as documented in shellexecute.pdf They specifiy the action to be performed. ; how the application is to be displayed when it is opened; and the default directory for the sub-process.
In many cases you will not need to use these options. |