Navigation: thinBasic Modules > OS (Operating System) > OS_Shell |
|
Description
Run an operating system command.
Syntax
n = OS_Shell(Command[, WindowStyle[, Mode]])
Returns
Number.
Parameters
Name |
Type |
Optional |
Meaning |
Command |
String |
No |
Command string to execute |
WindowStyle |
Number |
Yes |
A number corresponding to the style of the window in which the child process is to be executed. If WndStyle is omitted, the program is opened normal with focus. See OS_Equates for possible values |
Mode |
Number |
Yes |
If present, it can assume one of two options: the command will be executed and the script will wait for the command to finish the command will be executed and the script will immediatelly continue its execution |
Remarks
Execution can be run in asynchronous or synchronous mode.
Under asynchronous mode, script continues uninterrupted while Command is executed.
Under synchronous mode, script will wait for Command execution.
Restrictions
See also
Examples
© 2004-2008 thinBasic. All rights reserved. | Version 1.7.0.0 | Web Site: http://www.thinbasic.com |