From a command line type: echo @echo [Ctrl-g] > beep.bat[Enter]
[Ctrl-g] means press the Ctr & G keys on the keyboard, [Enter] means press the Enter key, don't type the square brackets (). This will create a one-line batch file called beep.bat. When you invoke it, it will beep, then exit. Is that what you're looking for?
If you're looking for a way to play a sound file, that's more difficult. Try this: echo @"C:\Program Files\Windows Media Player\wmplayer.exe" c:\windows\media\chimes.wav > chime.bat[Enter]
This will create a one-line bat file that will invoke WMP to play the the chimes.wav file. Unfortunately, I don't know of a way to close WMP after it plays the wav file. In previous versions of windows you could use the /close parameter to have wmp close after playing the file.
Edited by strolln, 28 March 2010 - 08:17 PM.