Try NirCMD as mentioned here:
http://www.winhelponline.com/blog/create-shortcuts-to-eject-and-close-cddvd-drive/
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello!!!
How can I add an option of Load/Insert in the right click menu of my CD and DVD Drives. I went through the search engines and found the registry tweak where we placed the "cdeject.dll" in the "C:/Windows/system32" folder and then add some entries to registry. But that did not work with Windows 7.
Please help me out.
Thanks
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
Try NirCMD as mentioned here:
http://www.winhelponline.com/blog/create-shortcuts-to-eject-and-close-cddvd-drive/
Answer accepted by question author
I do see an 'eject' item on the rightclick menu, but it does not use the media player object, so it fails. Here is the source code for an HTA filetype file that illustrates how you can 'Load" the tray.
--cd tray.hta--cut here--
<HTML>
<HEAD>
</HEAD>
<BODY onload=BtnPlay.click()>
<OBJECT ID="Player" height="0" width="0"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
</OBJECT>
<INPUT TYPE="BUTTON" NAME="BtnPlay" VALUE="Play" OnClick="StartMeUp()">
<INPUT TYPE="BUTTON" NAME="BtnStop" VALUE="Stop" OnClick="ShutMeDown()">
<SCRIPT>
<!--
function StartMeUp ()
{
Player.cdromCollection.item(0).eject();
}
function ShutMeDown ()
{
Player.cdromCollection.item(0).eject();
}
-->
</SCRIPT>
</BODY>
</HTML>
--end file--cut here---
Open the .HTA file in the browser, and it will open or close the first CD/DVD device. The second device would be
Player.cdromCollection.item(1).eject();
Rating posts helps other usersMark L. Ferguson MS-MVP
The function to control the CD tray from the Windows Shell does not have that interface. A Media Player object has it, but the shortcut to that activeX interface is going to be the way to do it. Windows Explorer does activeX, but the exe files that do it are 'protected' from modification like that. It would take a new version of Windows to add it, since even Service Packs are designed to avoid 'new features'
Rating posts helps other usersMark L. Ferguson MS-MVP
Thanks Mark, your suggestion worked. But is there any way I can add the option of Insert in the Right click menu.
Thank you very much.
Hello adityasaraf007, welcome.
The following are instructions that may or may not work for Windows 7, however, they have been modified by myself.
After the second restart, see if you have the Insert/Eject item in the context menu
Let us know what happens,
Thanks!