Command Line Scriptable Windows Media Player Component
Player Command Line Options
-alivereturns 'Alive' if the player is currently running, otherwise returns 'Dead'-hideconsolehides the console window spawned by the process-noautoplaysuppresses the auto play-autoclosecloses the player automatically when the playback is stopped-playlist [file]loads the playlist specified by[file]-files [file1] [file2] [...]starts the player with the items listed added to the current playlist. All arguments after-filesare treated as filenames.
Player Return Codes
- -1 General Error
- 0 Ok
Control Command Line Options
-statusgets the current play state.-playstarts playback.-pausepauses playback.-stopstops playback. If the player was started with-autoclosethe player will close.-nextplays the next item in the playlist.-prevplays the previous item in the playlist.-mutemutes the player.-volume [value | +[+...] | -[-...]]sets the volume to the specifiedvalue, each+increases the current volume by 5%, each-reduces the volume by 5%.-seek [value | +[+...] | -[-...]]seeks the player byvalueseconds (can be negative), each+seeks 10 seconds, each-seeks back 10 seconds.-closecloses the player.
Examples:
-
Start the player from a batch file, playing
playlist.m3u, and close when completestart scriptablewmpplayer.exe -hideconsole -autoclose -playlist playlist.m3u -
Set the player volume to 30%
scriptablewmpplayer.exe -volume 30