|
SHELL can be called as a statement (blocking) or as a function
(non-blocking). It has the same functionality as RUN except the
statement blocks your application until the executed one has
ended.
Syntax: SHELL
command SHELL "rapidq.exe" Syntax: SHELL(command,
showCMD) 'blocks
until ends PID = SHELL("rapidq.exe",
SW_SHOWNORMAL) 'does not
block
Details: If calling SHELL as a function, the
return value is the process ID of the executed program, and will not
block your program. showCMD can be any of the following: 0 = SW_HIDE 6 = SW_MINIMIZE
1 = SW_SHOWNORMAL 7 = SW_SHOWMINNOACTIVE
2 = SW_SHOWMINIMIZED 8 = SW_SHOWNA
3 = SW_SHOWMAXIMIZED 9 = SW_RESTORE
4 = SW_SHOWNOACTIVATE 10 = SW_SHOWDEFAULT
5 = SW_SHOW
Examples:
Shell "command.com /C copy /b one.txt+two.txt oneandtwo.txt"
x=Shell("Command.com /C echo y| del "+chr$(34) + ".\Original\*.*" +chr$(34) , 0)
|