There is now only 1 person (yes 1 person) working on the nova launcher. After they were bought, the new owners are letting it die slowly. Its sad. I like nova and cant really find anything else I like. I used the microsoft launcher for awhile but it really became a resource hog.
Question
TekNetics
folks;
I'm really new at vbscripting for windows but have managed to work out some of my issues.
I'm stuck on closing the script early if a user clicks the cancel button in a msgbox.
I can get the result code but even using wscript.quit the script continues to run when I click cancel in the msgbox box.
Here's a snippet of the script I am working on
On error resume next
MsgBox "This utility will close ALL instances of Microsoft Access.", 1+32
If result = 2 then wscript.quit
For each Process in GetObject("winmgmts:").InstancesOf ("win32_process")
If ucase(Process.name) = ucase("msaccess.exe") Then
Process.Terminate
End IF
Next
Msgbox "Time to continue with other steps"
The idea is to close the script if the Cancel button is pressed or continue if OK is pressed.
Appologies for the rookie question but I can't find any guidance on this .
Thanks
Link to comment
https://www.neowin.net/forum/topic/567264-exitting-a-vbscript-based-on-msgbox-result/Share on other sites
5 answers to this question
Recommended Posts