Share via


Windows Media Player 11 SDK Cdrom.driveSpecifier 

Windows Media Player SDK banner art

Previous Next

Cdrom.driveSpecifier

The driveSpecifier property retrieves the CD or DVD drive letter.

Syntax

  

Possible Values

This property is a read-only String.

Remarks

Typically, DVD drives can play CD media, but CD drives cannot play DVD media. This property retrieves a drive specifier for a zero-based drive index within the range retrieved using *CdromCollection.*count. The value retrieved takes the form X:, where X represents the drive letter.

To retrieve the value of this property, read access to the library is required. For more information, see Library Access.

Windows Media Player 10 Mobile: This property is not supported.

Example Code

The following JScript example uses Cdrom.driveSpecifier to fill an HTML text area named myText with a comma-separated list of available CD and DVD drives. The Player object was created with ID = "Player".

  

Requirements

Version: Windows Media Player version 7.0 or later.

Library: Use wmp.dll.

Platform: Windows XP or later for DVD.

See Also

Previous Next