DocErr: Media Player Command-Line Switches

Article translations Article translations
Article ID: 126869 - View products that this article applies to.
This article was previously published under Q126869
This article has been archived. It is offered "as is" and will no longer be updated.
Media Player (both the 16-bit MPLAYER.EXE and the 32-bit MPLAY32.EXE) supports the following command-line syntax:

   MPLAYER /play /close /embedding file

All of the command-line switches and the file name are optional. Their meanings are as follows:

   /play       Play file right away.
   /close      Close after playing (only valid with /play).
   /embedding  Run as an OLE server.
   file        The file or device to open.

This information was inadvertently omitted from the Windows documentation.

In Windows 95 and Windows NT 3.5 and higher, the Media Player also supports the following switch:

   /open       Open the file if specified; otherwise, show the File Open

In addition, the following switches can be used to ensure that the specified file is of a particular type:

   /AVI        The file must be a Video for Windows (.AVI) file.
   /MID        The file must be a MIDI (.MID) file.
   /WAV        The file must be a Wave Audio (.WAV) file.
Expand all | Collapse all


Article ID: 126869 - Last Review: February 28, 2014 - Revision: 3.0
  • Microsoft Windows for Workgroups 3.1
  • Microsoft Windows for Workgroups 3.11
  • Microsoft Windows NT Server 3.5
  • Microsoft Windows NT Server 3.51
  • Microsoft Windows NT Workstation 3.5
  • Microsoft Windows NT Workstation 3.51
  • Microsoft Windows Software Development Kit 3.1
kbnosurvey kbarchive kbmm kbdocerr KB126869

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from