# Play

The internal **Play** command is used to [play](../../../additional_functionality/playing_sounds) selected sound files. This is a very simple built-in utility - it's not supposed to replace a dedicated sound player. It may also not support all audio formats - fundamentally, only **.wav** files are supported, although **.mp3** and other formats can also work if suitable codecs are installed for them.

**Command Arguments:**

| Argument        | Type | Possible values   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| --------------- | ---- | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| _(no argument)_ | -    | -                 | <p>Plays selected sound files in the current folder using the internal <a href="../../../additional_functionality/playing_sounds">sound player</a>.</p><p><em>Example:</em> <code>Play</code></p>                                                                                                                                                                                                                                                                                                                                                                                               |
| FILE            | /M   | _\<filename> ..._ | <p>Plays the specified sound file or files. This lets you play a specific sound - for example, you might add this command to the end of a button to signify that a function had completed. You would normally want to use the <strong>QUIET</strong> argument as well in these cases.</p><p>Remember that if the filename contains spaces you need to enclose it in quotes. This is the default argument for the <strong>Play</strong> command so you do not need to provide the <strong>FILE</strong> keyword.</p><p><em>Example:</em> <code>Play C:\Data\Sounds\Complete.wav QUIET</code></p> |
| QUIET           | /S   | _(no value)_      | <p>Plays the specified (or selected) sounds without displaying the Play dialog.</p><p><em>Example:</em> <code>Play QUIET</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| STOPALL         | /S   | _(no value)_      | <p>Stops any sounds that are currently playing in the background (due to the <code>Play QUIET</code> command).</p><p><em>Example:</em> <code>Play STOPALL</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                            |
