≡ Menu

Open/Close cd drive from command prompt

There is no windows built-in command to do this, but you can make use of a third party utility called nircmd.exe for this purpose. Download a copy of it from http://nirsoft.net and execute the below commands

To open …

nircmd.exe cdrom open D:

To Close …

nircmd.exe cdrom close D:

Where d: is your cd drive letter.

Happy Learning..,
Sitaram Pamarthi

Comments on this entry are closed.

  • UniqueStyle April 21, 2011, 2:34 am

    Thanks man…Your the best…I was searching for this but i dont found…but you help me…Thankyou again!

  • Sitaram Pamarthi April 22, 2011, 9:18 pm

    Happy to help… 🙂