Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

pause powershell script until keypress

Write-Host -NoNewLine 'Press any key to continue...';
$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pause #powershell #script #keypress
ADD COMMENT
Topic
Name
3+4 =