PB中调用Run以后,等Run的程序关闭以后才会执行后边的语句
OleObject wshintegerli_rc
CONSTANT integer MAXIMIZED = 3
CONSTANT integer MINIMIZED = 2
CONSTANT integer NORMAL = 1
CONSTANT boolean WAIT = TRUE
CONSTANT boolean NOWAIT = FALSE
wsh = CREATE OleObject
li_rc = wsh.ConnectToNewObject( "WScript.Shell" )
li_rc = wsh.Run(ls_run,NORMAL, WAIT)
从网上找来的,PB12.5测试成功。
页:
[1]