|Purpose:||Play MP3, .WAV, Midi, and other sound files|
|Format:||PLAYSOUND [/= /A /M /S /U /Vn] filename|
|filename||The file to play|
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.
|/=||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.|
|/A||Plays 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.|
|/S||Plays the sound file in synchronous mode (this is the default). TCC pauses until the file has finished playing and its window closes.|