Whenever I set a delay in powershell using Start-Sleep, e.g:
Start-Sleep 10
then it does not ignore CTRLC. I mean when I hit that key stroke the delay quits. How can I ignore it in delays?
Whenever I set a delay in powershell using Start-Sleep, e.g:
Start-Sleep 10
then it does not ignore CTRLC. I mean when I hit that key stroke the delay quits. How can I ignore it in delays?
You can temporarily set
[Console]::TreatControlCAsInputto$true: