Navigation: thinBasic Modules > OS (Operating System) > OS_ShellExecute |
|
Description
Performs an operation on a specified file. The OS_ShellExecute function opens or prints a specified file. The file can be an executable file or a document file.
Syntax
n = OS_ShellExecute(Operation, File, Parameters, Directory, ShowCmd)
Returns
Parameters
Name |
Type |
Optional |
Meaning |
||||||||||||||||||||
Operation |
String |
No |
A string specifying the operation to perform. This string can be "open" or "print". |
||||||||||||||||||||
File |
String |
No |
A string specifying the file to open |
||||||||||||||||||||
Parameters |
String |
No |
A string specifying parameters passed to the application when the File parameter specifies an executable file. If File is a string specifying a document file, this parameter is an empty string. |
||||||||||||||||||||
Directory |
String |
No |
a string specifying the default directory. |
||||||||||||||||||||
ShowCmd |
|
Remarks
Restrictions
See also
Windows API reference, OS_Shell
Examples
© 2004-2008 thinBasic. All rights reserved. | Version 1.7.0.0 | Web Site: http://www.thinbasic.com |