Command Line (Windows)

Published on February 2017 | Categories: Documents | Downloads: 63 | Comments: 0 | Views: 357
of 3
Download PDF   Embed   Report

Comments

Content

Command Line Parameters (Windows)

Dev Center - Desktop
DASHBOARD

GET STARTED

DESIGN

DEVELOP

CERTIFY
Sign in

Desktop technologies

Server and system

Audio and Video
Windows Media Player SDK
Windows Media Player
Registry Settings
Command Line Parameters
Audio Outputs
Redistributing Windows
Media Player Software

API index

Samples

Community

Command Line Parameters
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

"path\filename"
(For example: wmplayer
"c:\filename.wma" )

Start the Player and play the file.

Device Extensions for
Accelerated Metadata Transfer

"path\filename" /fullscreen
(For example: wmplayer

Play the specified file in full-screen mode.
You must specify the path and file name of the content to play.

Device Extensions for
Reporting Acquired Content

"c:\filename.wmv" /fullscreen )

Publishing Codecs for
Windows Media Player
Resizing the License
Acquisition Dialog Box

Device Extensions for Playlist
Object Preferences
Device I/O Control Codes
Custom Image Support for
Devices

/Device:{DVD|AudioCD}
(For example: wmplayer
CD )

Play a DVD or audio CD.
/device:audio

"path\filename?WMPSkin=skin name"
For example: wmplayer

Open the Player, applying the specified skin.

"c:\filename.wma?wmpskin=headspace"

/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).

http://msdn.microsoft.com/en-us/library/windows/desktop/dd562624(v=vs.85).aspx[1/17/2014 4:07:34 AM]

Command Line Parameters (Windows)

/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

Open the Player, showing the specified media category. Requires Windows
Media Player 11.

/Schema:Pictures
/Task:PortableDevice

 

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 level
Example:
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

http://msdn.microsoft.com/en-us/library/windows/desktop/dd562624(v=vs.85).aspx[1/17/2014 4:07:34 AM]

Command Line Parameters (Windows)

/Close

Close all instances of wmpnscfg.

 

Related topics
Windows Media Player
 
 
Build date: 11/16/2013

Community Additions

Help us help you

Answer questions that we’ll use to
make the Dev Center better.

ADD

Find us on Facebook
Follow us on Twitter
Get the newsletter

Take the survey

Centers

Related developer sites

Downloads

Essentials

Dev Center Home

Microsoft Connect

Windows 8.1

Windows APIs

Windows Store apps

.NET Framework

Windows SDK

Samples

Visual Studio

Visual Studio Express 2013

Compatibility and certification

Windows Phone

More downloads

Desktop dashboard

Windows Server

Support

Stay connected

Forums

Microsoft events

More support options

Windows App Builder Blog

Internet Explorer
Desktop

Other Windows sites
Enterprise
Small business

Hardware

Students
Home users

Hello from Seattle.

United States (English)

http://msdn.microsoft.com/en-us/library/windows/desktop/dd562624(v=vs.85).aspx[1/17/2014 4:07:34 AM]

Terms of Use

Trademarks

Privacy and Cookies

© 2014 Microsoft

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close