Eject CD DVD from right click context menu or just by a shortcut in Windows 7. No software installation is required. With a simple vbs script, we will use the Windows Media Player’s eject function to eject CD DVD or blue ray disk.
Here is how the option eject CD DVD from right click context menu in Windows 7 will look like:
We will need to create a vbs file, an icon and a registry file to integrate it to the right click menu.
Creating the vbs file to Eject CD DVD or blu ray disk
We need a vbs file to Eject CD DVD or blue ray; you can eject CD DVD just by double clicking it.
Open Notepad. Write the following things for Eject CD DVD:
Set oWMP = CreateObject(“WMPlayer.OCX.7” )
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count – 1
Next ‘ cdrom
Set oWMP = Nothing
Set colCDROMs = Nothing
Save the file asfor the example above and do not forget to change the file type from text to All files from drop down menu in Notepad before saving it. Obviously, you can save with any name you like, but you have to change the name in registry file in second step as well.
Double click to test the file. It should eject the CD / DVD drive.
After this step, you can use it as a standalone program:
- Just keep it on the desktop and double click to launch
- Move to any folder (other than desktop, like in C: drive;) and create a Shortcut to it bu right clicking over it and customize the icon by Right clicking on the Shortcut > Properties > Change icon. Just like we have done:
Those who have not still subscribed to our RSS feed or free daily Email updates (remember to check your junk / spam folder for confirmation email from Google for our subscription; lot of visitors forget to confirm it after subscription, we can see from account) might be astonished to see where from the iPad like wooden bookshelf came in Windows 7 Desktop. We wrote a tutorial how to get it before, you can read that as well.
The download package contains the above shortcut to Eject CD DVD with custom icon as well.
For those who want Eject CD DVD in right click context menu in Windows 7
For those who want Eject CD DVD option in Windows 7 right click context menu; need to create a registry file. Please do not forget to place the batch file in C drive (both for the shortcut to Eject CD DVD and right click menu).
This will add the functionality to get a working Eject CD DVD option with custom icon from right click context menu. Open Notepad, copy paste the following and modify as per your need:
Windows Registry Editor Version 5.00
The blue text is the name you want to see in your right click menu. You name it as you like.
The orange text determines the position of the menu. You can use Top, Middle instead of Bottom.
The red text dictates the name and location of the vbs file.
The green text is the location of the icon.
Save the file asand do not forget to change the file type from text to All files from drop down menu in Notepad before saving it. Name does not matter here at all. You can save as you like.
Now, double click the reg file and accept the security warnings and you will see the Eject option in right click context menu when clicked on a folder or any empty place inside folder or Windows 7 desktop.
Add a minus sign before the H starts after the third bracket; liketo all where there is HKEY and save it (with some good name) as reg file and run it. It will break the association; so the Eject CD DVD option will disappear from right click context menu.
Obviously, you might delete the bat files manually too.
The rar file is password protected, type thecustomizewindows.com as the password.Tagged With eject disc menu , Eject CD Windows 7 , eject disc windows 7 , Eject DVD Windows 7 , windows 7 eject cd , eject disk in windows 7 , how to eject disc windows 7 , cd right click context menu , Eject CD Windows 7 Command , eject dvd drive windows 7