Introduction | Language Structure | IB Statements | File System | Comet 32 Runtime | Index |
| Mnemonic: | (ShellExecute=Action$, File$, Args$, WorkDir$,WinMode) | ||||||||||||||||||||||
| Discussion: |
This mnemonic launch a Windows program or document. It is used with the system driver (X00) or TERM$.
The parameters are: Action$ = A verb associated with the file type. Typically "open" or "play". To specify the default action, use "". You can see the verbs for a given file type from the File Types dialog available via the "View/Folder Options" menu item (in Windows Explorer). Prog$ = The name of a program (e.g., notepad.exe) or a document (e.g., myfile.txt) Args$ = Additional command line arguments WorkDir$ = The current directory to use when executing the Prog$ WinMode =
Also see (ShellExecuteWait). | ||||||||||||||||||||||
| History: | This mnemonic was added in REL 00.06. Support for TERM$ was added in REL 02.04. | ||||||||||||||||||||||
| Example 1: |
The following code launches the NOTEPAD program.
PRINT (0) (ShellExecute="open","notepad.exe","","",1)where:
| ||||||||||||||||||||||
| Example 2: |
The following code launches the NOTEPAD program. The system driver
(X00) is opened on Logical Unit Number 20.
OPEN (20) "X00" PRINT (20) (ShellExecute="open","notepad.exe","","",1) CLOSE (20)where:
|