用户按ctrl-c可以轻松终止Powershell脚本.有没有办法让Powershell脚本捕获ctrl-c并要求用户确认他是否真的要终止脚本?
powershell copy-paste
copy-paste ×1
powershell ×1