Jump to content

Program won't quit


 Share

Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...