copyleft Posted December 4, 2006 Posted December 4, 2006 This script won't quit when the cancel button is pressed. How can I fix it? If FileExists("C:\StoreIt") Then MsgBox(65, "Msg", "Standby", 5) Else DirCreate("C:\StoreIt") MsgBox(65, "Msg", "Standby", 5) EndIf RunWait(@ComSpec & " /c " & 'C:\BAT\delimg.vbs', "", @SW_HIDE) run("C:\Program Files\Programthatwontquit.exe") SLEEP(500) WINKILL("Screen", "We have successfully completed your request") exit
Somerset Posted December 4, 2006 Posted December 4, 2006 If FileExists("C:\StoreIt") Then $a=MsgBox(65, "Msg", "Standby", 5) if $a=2 then exit Else DirCreate("C:\StoreIt") $b=MsgBox(65, "Msg", "Standby", 5) if $b=2 then exit EndIf RunWait(@ComSpec & " /c " & 'C:\BAT\delimg.vbs', "", @SW_HIDE) run("C:\Program Files\Programthatwontquit.exe") SLEEP(500) WINKILL("Screen", "We have successfully completed your request") exit think this will help above.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now