• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Eject CD DVD from right click context menu in Windows 7

By Abhishek Ghosh May 26, 2011 9:42 pm Updated on May 26, 2011

Eject CD DVD from right click context menu in Windows 7

Advertisement

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:

 

Eject CD DVD from right click context menu in Windows 7

We will need to create a vbs file, an icon and a registry file to integrate it to the right click menu.

Advertisement

---

 

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
colCDROMs.Item(i).Eject
Next ‘ cdrom
End If

Set oWMP = Nothing
Set colCDROMs = Nothing

 

Save the file as eject.vbs for 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:

 

Eject CD DVD desktop shortcut

 

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

[HKEY_CLASSES_ROOTLibraryFolderbackgroundshellEject]
“Icon”=”C:DVD Drive.ico”
“Position”=”Bottom”

[HKEY_CLASSES_ROOTLibraryFolderbackgroundshellEjectcommand]
@=”Wscript.exe “C:eject.vbs“”

[HKEY_CLASSES_ROOTDirectoryBackgroundshellEject]
“Icon”=”C:DVD Drive.ico”
“Position”=”Bottom”

[HKEY_CLASSES_ROOTDirectoryBackgroundshellEjectcommand]
@=”Wscript.exe “C:eject.vbs“”

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 as Eject CD DVD.reg and 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.

Removal:

 

Add a minus sign before the H starts after the third bracket; like [-HKEY_CLASSES…. to 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.

Downloads:

 

As usually all the required files are here for Eject CD DVD is for your download.

The rar file is password protected, type thecustomizewindows.com as the password.

Signature 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

This Article Has Been Shared 183 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Eject CD DVD from right click context menu in Windows 7

  • Cascading list of folders in right click context menu in Windows 7

    After reading this tutorial, you will be able to add a right click custom named menu and cascading list of submenu of folders of your choice with custom icons in Windows 7.

  • Cascading list of websites in right click context menu in Windows 7

    After reading this tutorial, you will be able to add a right click custom named menu and cascading list of submenu of websites of your choice with icons of your choice in Windows 7.

  • Show Hide file extension toggle option in Windows 7 context menu

    Add a toggle Show Hide file extension with a custom icon in Windows 7 right click context menu following this trick. Resources needed are available as free download too.

  • Talking clock in right click context menu without any software

    After reading this tutorial, you will get an option in the right click context menu, click which your computer will speak the current time by your clock.

  • Talking Calculator in right click context menu without any software

    Talking Calculator in right click context menu without any software for your Windows 7 or any version of Windows PC.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Comments

  1. AvatarSaeid Rahiminejad says

    June 21, 2012 at 6:17 pm

    Hello
    this is very good
    I Want Remove Eject from CD/DVD Drive Right Click and Insert Other Name. Please Help me
    Thank You.
    Please if became Send This to My Email.

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Four Foolproof Tips To Never Run Out Of Blog Ideas For Your Website March 28, 2023
  • The Interactive Entertainment Serving as a Tech Proving Ground March 28, 2023
  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023
  • Advantages of Cloud Server Over Dedicated Server for Hosting WordPress March 26, 2023
  • Get Audiophile-Grade Music on Your Smartphone March 25, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Eject CD DVD from right click context menu in Windows 7," in The Customize Windows, May 26, 2011, March 29, 2023, https://thecustomizewindows.com/2011/05/eject-cd-dvd-from-right-click-context-menu-in-windows-7/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT