Share via

Customizing Right Click Context Menu

Anonymous
2009-10-01T17:35:30+00:00

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

Windows for home | Previous Windows versions | Accessibility

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.

0 comments No comments

Answer accepted by question author

Anonymous
2009-10-13T12:37:42+00:00

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

!\[\](http://i3.social.microsoft.com/Image.avatr?size=Large&amp;user=Mark L. Ferguson&amp;id=fb4a4625-6789-43eb-aa48-4a1fbf2df947)

Was this answer helpful?

0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2009-10-14T07:16:41+00:00

    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

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2009-10-13T23:43:35+00:00

    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.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2009-10-05T18:50:27+00:00

    Hello adityasaraf007, welcome.

    The following are instructions that may or may not work for Windows 7, however, they have been modified by myself.

    1. Download the CDEject modified DLL here: http://my.opera.com/winamp/homes/blog/cdeject.dll
    2. Place the file in C:\Windows\System32
    3. Click START
    4. Type 'cmd' (without quotes). Right click the result at the top of the START menu and choose 'Run as Administrator'
    5. Type regsvr32 cdeject.dll and press enter
    6. Download the registry modification here: http://sites.google.com/site/pwdionline/Home/CDEject.reg?attredirects=0
    7. Once downloaded, double click it and confirm to add it to the registry.
    8. Restart your computer 2 complete times, each time let it get to the desktop and load all startup items before restarting.

    After the second restart, see if you have the Insert/Eject item in the context menu

    Let us know what happens,

    Thanks!

    Was this answer helpful?

    0 comments No comments