Jump to content
Sign in to follow this  
copyleft

Program won't quit

Recommended Posts

copyleft

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

Share this post


Link to post
Share on other sites
Somerset

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.


 

Spoiler

 

Share this post


Link to post
Share on other sites
copyleft

Perfect. Many thanks. ;)

Share this post


Link to post
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
Sign in to follow this  

×