Prev Next execute

Creating a File and Linking to its Execution

Syntax
$execute filename$

See Also
codep , verbatim

Purpose
This command creates the file specified by filename together with a link to the file. Both leading and trailing white space in filename is ignored and there cannot be any $ characters in filename . The file name is displayed as the text for the link. The contents of the file is the text that is displayed by the next codep command.

Target
It is assumed that the extension in the file name will inform the web browser what application should be launched to execute the file. If the web browser itself displays the file, it will to so in its top frame; i.e., not in a sub-frame of the browser window.

Example
The following input
 
     If you select
     $execute Example.wri$$
     using Microsoft Internet Explorer,
     Wordpad will be opened with the following contents
     $codep
     Example contents for the file Example.wri
     $$

displays as follows:

If you select Example.wri using Microsoft Internet Explorer, WordPad will be opened with the following contents
 
Example contents for the file Example.wri

Input File: execute.omh