Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Viewing all articles
Browse latest Browse all 8411

Ctrl+C and a prompt

$
0
0

I have a PS script that runs to gather info on remote servers, I'd like to be able to press

Ctrl+c   and have a prompt  "would you like to terminate (Y/N)?"  and of course if you press "Y" then it terminates back to the prompt and "N" continues the task. 


Can someone point me in the direction to accomplish this?


Thanks
Shane


Viewing all articles
Browse latest Browse all 8411

Latest Images

Trending Articles



Latest Images