Pages

Play wave files from .BAT programs

If you ever need to play a wave file (*.WAV) from the DOS/Command Prompt (from a .BAT/.CMD file for example), you can use the following command:

Windows 95:
mplayer.exe /play /close

Windows NT:
mplay32.exe /play /close

For example:

Windows 95:
mplayer.exe /play /close c:\windows\media\ringin.wav

Windows NT:
mplay32.exe /play /close c:\winnt\media\ringin.wav



No comments:

Post a Comment