To create a batch file with a pc speaker beep sound.
You will need to run the following command a the CMD prompt:
c:\>copy con example.bat
- now in the blank line under type:
- then to close the file:
Press ctrl+z then the enter key.
- you will see the message:
1 file(s) copied
Output of the screen (fig.1)