Is there a way to catch ctrl-c and ask the user to confirm?
Asked 2012-05-24T08:24:16.020
14
Powershell scripts can easily be terminated by the user pressing ctrl-c. Is there a way for a Powershell script to catch ctrl-c and ask the user to confirm whether he really wanted to terminate the script?