Runs an executable Windows program
ret = Shell (commandstring, style)
ret | Integer, output |
0 = OK | |
Non zero = Error | |
commandstring | String, input |
This is the name of the program to execute along with any command line parameters. | |
style | Integer, input |
This parameter determines window style and focus of the program’s window when it is executed and initially displayed. | |
1,5,9 = normal with
focus
2 = minimized with focus 3 = maximized with focus 4,8 = normal without focus 6,7 = minimized without focus |
This is a VBScript command.
Example
Sub ZMain()
ret = Shell ("notepad.exe", 3)
End Sub