PB中掉用Run以后,等Run的程序关闭以后才会执行后边的语句

OleObject wsh
integer  li_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)

 

posted @ 2013-10-30 15:52  春夏秋冬春  阅读(1091)  评论(0编辑  收藏  举报