Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

How to get script to stop if I press Cancel

$
0
0

I have a script that has popup boxes that ask for information.  There is an OK and Cancel button on each.  I want at anytime a Cancel is pressed for the script to stop.  Any idea how to do that?  I have about 4 popup boxes but if I press cancel on any of them I want it to stop.

Thanks,


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>