In Windows, if we right-click on CD/DVD drives, we get an option to "Eject" the tray but we don't get option to "Insert" the tray. In this tutorial, I'll tell you a trick to add "Insert" optionĀ in CD/DVD drives context menu.
Here is the step-by-step procedure:
1.) Download following zip file, extract it and copy the DLL file to "%windir%\System32" folder:
2.) Now download following zip file, extract it and then run the .REG file:
That's it. Now you'll get an extra option "Insert" in CD/DVD drives context menu, which will make the life easier and you'll not have to press the insert buttonĀ at your CD/DVD drive each time.
Complete list of AskVG articlesThis article was posted in Windows XP.
Related Articles
Popular Articles
- Frequently Asked Problems with Solutions
- Is Your System Infected with a Virus / Spyware / Adware / Trojan?
- Transform Windows Vista into 7 without using Customization pack
- Transform Windows XP into 7 without using Customization pack
- Transform Windows XP into Vista without using Customization pack
- All About Resource Hacker in a brief Tutorial
- Master Tutorial to Make Your Windows 7 Super Fast
- Master Tutorial to Make Your Windows Vista Super Fast
- Master Tutorial to Make Your Windows XP Super Fast
- All Kinds of Restrictions for Windows XP, Vista and 7




SpanishCrack
Hi AJ.
There is one way to include nircmd command into the regitry under Windows XP.
First, create a register.reg file (plain text with .reg extension) with the following text:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Drive\shell\eject]
@="Eject Tray"
[HKEY_CLASSES_ROOT\Drive\shell\eject\command]
@="nircmd.exe cdrom open %L"
[HKEY_CLASSES_ROOT\Drive\shell\load]
@="Load Tray"
[HKEY_CLASSES_ROOT\Drive\shell\load\command]
@="nircmd.exe cdrom close %L"
Save it and then execute it (combine into the registry).
Remember you need nircmd.exe file saved into the C:\Windows\system32\ directory prior to combine the registry file (register.reg).
Regards from Spain,
Alex
AJ
@SpanishCrack: Much appreciated! Thanks.
Soulfinger
Hello all. AJ did you try SpanishCrack's method on your Vista X64 machine?
Did it Work? Cause when i try to click the eject button on one of me DVD ROMs I get the warning "This file does not have a program associated with it for performing this action. Create an association in the Set Associations control panel"
I have the nircmd.exe installed in windows. I have went to the Associations control panel but don't know what one it is in the list to set it to nircmd.exe
To get to the Associations control panel - Click the start button then Default Programs then "Associate a file type or protocol with a program"
when in there click Current Default on the far right to sort into programs then scroll down to Unknown Program (easier to find).
But if yours is working just find nircmd.exe and see what the name & Description is and hopefully you will be able to solve this for me. Cheers & thanks for everyone trying to suss this Much appreciated.
AJ
@Soulfinger: Yes, it worked for me. Here is what I did:
1. I did NOT execute the eject code that SpanishCrack included. This is because Vista already includes the Eject feature, so it was pointless.
2. Before copying the nircmd file into c:\windows\system32, I right clicked on the file and then went to the Properties. I then clicked "Unblock" to ensure I wouldn't have any problems.
A few things:
1. I did not have to reboot for this.
2. I did not use the associations control panel for this.
Soulfinger
Thanks for the reply AJ. I don't need to Unblock turned of that annoying vista feature early on.
I have went to to the registry (type "regedit" from run) and found the enties regarding the eject and load and changed them to the destaination of nircmd now when i click eject on the DVD rom a dos screen flashes up for a second and nothing happens? Any Idea?
AJ
@Soulfinger: Where is nircmd on your computer? Make sure it is at c:\windows\system32 so you don't have to specify a path in the registry - you can just type "nircmd.exe ..."
Also, try this:
1. Copy nircmd to c:\windows\system32
2. From a DOS prompt, go to c:\windows\system32 and then type:
nircmd.exe cdrom open d:
and see if it opens. If it doesn't open from here, then you will need to figure out why the program isn't working on your computer and then troubleshoot why the shortcut through the registry doesn't work.
Note that you don't need to add the Eject code because Vista already includes the Eject option. So, just add the Insert command.
Soulfinger
@AJ It's in the right place. I typed nircmd.exe cdrom open f from run and it opened my drive
making progress.
Did you use the original registry entry? and not SpanishCrack one?
AJ
Ok, so nircmd is correctly working on your computer - that's good.
No, I did not use VG's approach because I use Vista x64 which isn't compatible with VG's approach. I adapted SpanishCrack's approach. Here is an export of the registry entry I used:
=======================================
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Drive\shell\loadtray]
@="Load Tray"
[HKEY_CLASSES_ROOT\Drive\shell\loadtray\command]
@="nircmd.exe cdrom close %L"
=======================================
Can you export the new registry branch you added and paste it here so we can take a look.
Soulfinger
I made a new registry.reg file that you mentioned but get the same Dos screen flash when i try to open or load a drive.
The thing is i already added Spanishcrack's one when the post arrived meaning i cant open the drive "Eject" as normal maybe i need to get that vista feature back to normal to then add your reg entry?
VG
Since I have not used this "nircmd" method, so I'll not discuss much about it. But I just want to share one thing, when you copy the registry code in notepad, delete the double-quotes manually and then re-type them. The blog theme doesnt show the double-quotes properly and it can cause problem. So it might be the reason behind your flashing DOS screen.