Параметры командной строки windows media player

Public mirror for win32-pr. Contribute to MicrosoftDocs/win32 development by creating an account on GitHub.
title description ms.assetid keywords ms.topic ms.date

Command Line Parameters

Command Line Parameters

c4af8a03-2cab-4ecd-bbd8-c83869822901

Windows Media Player,parameters

Windows Media Player,command-line parameters

Windows Media Player,Wmplayer

Windows Media Player,Wmpconfig

Windows Media Player,Wmpnscfg

command-line parameters

Wmplayer

Wmpconfig

Wmpnscfg

article

05/31/2018

Command Line Parameters for Wmplayer

Windows Media Player supports a set of command line parameters that specify how the Player behaves when it starts. The following table details the parameters and their behaviors.

Syntax Behavior
«pathfilename«(For example: wmplayer "c:filename.wma") Start the Player and play the file.
«pathfilename» /fullscreen(For example: wmplayer "c:filename.wmv" /fullscreen) Play the specified file in full-screen mode.You must specify the path and file name of the content to play.
/Device:{DVD|AudioCD}(For example: wmplayer /device:audio CD) Play a DVD or audio CD.
«pathfilename?WMPSkin=skin name«For example: wmplayer "c:filename.wma?wmpskin=headspace" Open the Player, applying the specified skin.
/Service:keyname Open the Player showing the online store specified by keyname.Requires Windows Media Player 10 or later.
/Task NowPlaying Open the Player in the Now Playing feature.
/Task MediaGuide Open the Player in the Media Guide feature (current active online store in Windows Media Player 10 or later).
/Task CDAudio Open the Player in the Copy from CD feature (Rip feature in Windows Media Player 10 or Windows Media Player 11). This parameter is not supported in Windows Media Player 12.
/Task CDWrite Open the Player in the Burn feature.Requires Windows Media Player 10.
/Task MediaLibrary Open the Player in the Library feature.
/Task RadioTuner Open the Player in the Radio Tuner feature (current active online store in Windows Media Player 10 or later).
/Task PortableDevice Open the Player in the Copy to CD or Device feature (Sync feature in Windows Media Player 10 or later).
/Task Services /Service servicename Open the Player in the Premium Services feature, showing the service specified by the servicename parameter. This value is the unique name for the service. If the specified service has not been previously viewed, the servicename parameter is ignored. (Opens the specified online store in Windows Media Player 10 or later.)
/Task ServiceTaskX Open the Player in the online store service task pane specified by X. For example, /Task ServiceTask1 opens the Player in the first online store service task pane.
/Task SkinViewer Open the Player in the Skin Chooser feature.
/Playlist PlaylistName Open the Player and play the specified playlist.
/Schema:{Music|Pictures|Video|TV|Other}For example: wmplayer /Schema:Pictures /Task:PortableDevice Open the Player, showing the specified media category. Requires Windows Media Player 11.

Command Line Parameters for Wmpconfig

Wmpconfig.exe is used to execute certain commands in Windows Media Player that require administrator permission. Examples include the starting and stopping of browsing and sharing services and the enabling of exceptions in the Windows Firewall. The following table describes the possible values for the command line parameters.

Syntax Behavior
DisableHMEDevice MAC Disables the device specified by a Media Access Control (MAC) identifier.
HMEOff Example:
wmpconfig HMEOff
Disables the Windows Media Player Network Sharing Service.
HMEOn Example:
wmpconfig HMEOn
Enables sharing, browsing, and the firewall exception.
RemoveHMEDevice MAC Removes the device specified by a MAC identifier.
RestoreHMEDevice MAC Restores the device specified by a MAC identifier.
SetDVDParentalLevel levelExample:
wmpconfig SetDVDParentalLevel 3
Sets the DVD parental control level. The level is specified as an integer.

Command Line Parameters for Wmpnscfg

Microsoft Windows uses wmpnscfg.exe to alert users when media rendering devices are found on the network. Wmpnscfg starts the Windows Media Player Network Sharing Service (NSS) and then waits for notifications from the service. When wmpnscfg is notified that a new media device is available on the network, it displays a popup in the system tray that informs the user about the availability of the new device. If the user clicks the popup, wmpnscfg launches Windows Media Player, which displays a dialog box that asks the user to either allow or deny sharing with the new device.

Typically, Windows calls wmpnscfg with no command line parameters. However, there is one parameter available, described in the following table.

Parameter Behavior
/Close Close all instances of wmpnscfg.

Related topics

Windows Media Player

I need to open a file in «standby» mode from a shortcut, wait for an introduction speech and then play the file.

How can I open the file in Windows Media Player 11 by command-line without playing it?

Gaff's user avatar

Gaff

18.3k15 gold badges56 silver badges68 bronze badges

asked Oct 2, 2010 at 9:09

Antoine's user avatar

According to this you can use /open in Windows Media Player 6.4, but it seems that the command line options have since changed.

answered Oct 2, 2010 at 9:45

ta.speot.is's user avatar

ta.speot.ista.speot.is

14.2k3 gold badges33 silver badges48 bronze badges

1

You can make a .bat/.cmd file with a pause statement. At the end of the intro you can then press Enter and the video will start. Here’s an example:

@echo off
echo Tested on Windows 7 64-bit
pause 
start /d "%ProgramFiles(x86)%Windows Media Player" wmplayer.exe "C:UsersUsernameVideosGTA 4test.avi"

Gaff's user avatar

Gaff

18.3k15 gold badges56 silver badges68 bronze badges

answered Oct 26, 2010 at 3:49

TackleBox's user avatar

TackleBoxTackleBox

431 silver badge5 bronze badges

1

Simply type the song name as music.mp3.

If there is any space in songs name just write it as "music new.mp3". Here, music stands for the title of the song you wanted to play.

slhck's user avatar

slhck

219k68 gold badges591 silver badges578 bronze badges

answered Dec 23, 2012 at 6:17

sazzad's user avatar

1

I need to open a file in «standby» mode from a shortcut, wait for an introduction speech and then play the file.

How can I open the file in Windows Media Player 11 by command-line without playing it?

Gaff's user avatar

Gaff

18.3k15 gold badges56 silver badges68 bronze badges

asked Oct 2, 2010 at 9:09

Antoine's user avatar

According to this you can use /open in Windows Media Player 6.4, but it seems that the command line options have since changed.

answered Oct 2, 2010 at 9:45

ta.speot.is's user avatar

ta.speot.ista.speot.is

14.2k3 gold badges33 silver badges48 bronze badges

1

You can make a .bat/.cmd file with a pause statement. At the end of the intro you can then press Enter and the video will start. Here’s an example:

@echo off
echo Tested on Windows 7 64-bit
pause 
start /d "%ProgramFiles(x86)%Windows Media Player" wmplayer.exe "C:UsersUsernameVideosGTA 4test.avi"

Gaff's user avatar

Gaff

18.3k15 gold badges56 silver badges68 bronze badges

answered Oct 26, 2010 at 3:49

TackleBox's user avatar

TackleBoxTackleBox

431 silver badge5 bronze badges

1

Simply type the song name as music.mp3.

If there is any space in songs name just write it as "music new.mp3". Here, music stands for the title of the song you wanted to play.

slhck's user avatar

slhck

219k68 gold badges591 silver badges578 bronze badges

answered Dec 23, 2012 at 6:17

sazzad's user avatar

1

  • Remove From My Forums
  • Вопрос

  • Здравствуйте!
    Использую Windows 7 RC 7100 x64 (Английская версия). Заметил, что при клике на любом медиафайле открывается 32-битная версия wmplayer.exe
    Исправил путь в ветке реестра MicrosoftWindowsCurrentVersionApp paths на 64-битную версию Windows Media, безрезультатно.
    Запустил от администратора команду %windir%system32unregmp2.exe /SwapTo:64
    Она всегда помогала в Vista решить данную проблему. В Windows 7 — безрезультатно.
    Приходится вручную назначать приложение для каждого расширения медиафайлов в панели управления, там выбор из двух значков Windows Media, из которых первый — 32-битный, другой — 64-битный.
    Может быть, есть более простое решение?
    Вообще же, непонятно, почему использование 32-битного Windows Media зашито настолько глубоко (я смотрел реестр еще на этапе установки системы, уже тогда было жестко прописано Program Files (x86). На текущем этапе развития информационных технологий имеется всё, что необходимо для использования 64-битной версии, тем более, в Windows 7, в которой появилось огромное количество встроенных кодеков. Тем более, что кодеки — одни из тех программ, использование которых в 64-битном режиме может дать реальный прирост производительности.

Ответы

  • спользование Windows Media Player х64 по умолчанию в Windows 7 х64

    По умолчанию в Windows 7 Beta 1 запускается 32-битная версия Windows Media Player. Для включения запуска по умолчанию 64-битной версии проигрывателя выполните следующие действия:

       1. Запустите командную строку (cmd) от имени администратора:
             1. Нажмите Пуск и напишите в строке поиска cmd
             2. На найденном файле нажмите правую клавишу мыши и выберите пункт Run as administrator
       2. Введите следующую команду (команда чувствительна к регистру)
    unregmp2.exe /SwapTo:64

                  3. Откройте редактор реестра: Пуск — в строке введите regedit и нажмите Ввод
       4. Перейдите в раздел HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionApp Pathswmplayer.exe
       5. В правой части редактора реестра откройте параметр Path
       6. Измените в значении «%ProgramFiles(x86)» на «%ProgramFiles%»

    • Помечено в качестве ответа

      18 мая 2009 г. 11:22

Понравилась статья? Поделить с друзьями:
  • Параметры невозможно открыть используя встроенную учетную запись администратора windows 10
  • Параметры команд в командной строке windows
  • Параметры на английском языке windows 10
  • Параметры индексирования windows 10 отсутствует в панели управления
  • Параметры мыши в windows 10 для кс го