BEEP (Short name: BEE)
Top  Previous  Next

Use the BEEP command to sound the computer's bell.

beep

Options


Duration
Time in milliseconds for the bell to sound.

FREQ
Allows for user specified bell properties.
This feature is only applicable to Windows 2000/NT/XP and will be ignored by all other operating systems.

Frequency
A numeric value ranging from 10-65635 which represents the frequency of the bell in Hertz.

FILE
Full path to a WAV sound file to play.

About the BEEP Command

BEEP is useful to signal when a process has finished, or to signal that an error has occurred in a command file.

Example

In the following example, the first command line displays a message to indicate that a process has finished and instructs you to press a key to continue. The second command line sounds the computer's bell. The third command line stops processing until you press any key.

WRITE 'Processing is complete. Press any key to continue.'
BEEP
PAUSE