News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

Play wave files from .BAT programs

Started by charleychacko, October 15, 2006, 12:02:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

charleychacko

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 <wave file>

Windows NT:
mplay32.exe /play /close <wave file>

For example:

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

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