27Sep/100
Pausing PowerShell
Ever wondered how to use the pause function of DOS in PowerShell. Look no more. Here’s the script to do this:
[Powershell]Write-Host “Press any key to continue …”
$x = $host.UI.RawUI.ReadKey(“NoEcho,IncludeKeyDown”)[/PowerShell]
More info here: http://technet.microsoft.com/en-us/library/ff730957.aspx
Enjoy this article?
Consider subscribing to our rss feed!
Comments (0)
Trackbacks (0)
( subscribe to comments on this post )
No trackbacks yet.

Leave a comment