|
Answer» !is there a way to open my cd drive using command prompt?By opening do you mean reading the contents or ejecting the drive out.ejecting the drive out There is no built in command. One way is to open up "My Computer", right CLICK the drive in question and choose Eject.
You can also write a script to handle this:
Code: [SELECT] Set WMP = CreateObject("WMPlayer.ocx") Set colCDROMS = WMP.CDROMCollection
If colCDROMS.Count > -1 Then For i = 0 to colCDROMS.Count - 1 colCDROMS.Item(i).Eject Next End If
Save the script with a VBS extension and run from the command line as:
cscript scriptname.vbs
And yes, it works with remote drives provided the drive is mapped as a network share.
Good LUCK.
|