Purpose:Play  MP3, .WAV, Midi, and other sound files

 

Format:PLAYSOUND [/= /A /M /S /U /Vn] filename

 

filenameThe file to play

 

/A(synchronous)/U(n mute)
/M(ute)/V(volume)

/S(ynchronous)

 

File Selection

 

Supports extended wildcards, multiple file names, @file lists, and include lists.

 

Usage:

 

PLAYSOUND "plays" MP3, .WAV, Midi and other types of sound files for which Windows has an appropriate codec installed. It determines the file type automatically from its contents, not its file extension, so it can play sound files which have an unknown file extension. If you don't specify any arguments, PLAYSOUND will display its command dialog.

 

By default, PLAYSOUND operates in synchronous mode, which means TCC waits for the sound file to complete and its window to close before continuing with the next command in a batch file or alias, or prompting you for a new command. You can change this default behavior with the /A switch, described below.

 

You can cancel the playing of a synchronous sound file by pressing Ctrl-Break while it is playing.

 

Options:

 

/=Display the PLAYSOUND command dialog to help you set the filename and command line options. The /= option can be anywhere on the line; additional options will set the appropriate fields in the command dialog.

 

/APlays the sound file in asynchronous mode. Control returns to the TCC prompt immediately for a new command or to execute the next command in the current batch file or alias.

 

/MMute the volume.

 

/SPlays the sound file in synchronous mode (this is the default). TCC pauses until the file has finished playing and its window closes.

 

/UUnmute (restore the previous volume level).

 

/VSets the volume level. The range is 0 (silent) to 100.