Friday, June 8, 2018

Use PowerShell to send a Beep to the Console

PowerShell can send beeps to the console:

[console]::beep[500,300]

It's nice to throw two or three of these at the end of a long-running script to alert when the script is finished.

The first number is the pitch of the beep, and the second number is the duration of the beep in milliseconds.

No comments:

Post a Comment