• 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.

SignatureTagged 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
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

  • Windows 7 Right Click Menu Tips,Tricks and Tutorials : Index

    Windows 7 Right Click Menu Tips,Tricks and Tutorials those has been published within The Customize Windows till date is listed here along with description.

  • How to Add any program shortcut to Windows 7 right click Context Menu

    In this tutorial we will show how to add any program shortcut to Windows 7 right click Context Menu in easy steps.

  • Encrypt Decrypt any file or folder from right click context menu in Windows 7

    You can add Encrypt or Decrypt option in Windows 7 right click context menu. Thus any file or folder can be Encrypted or Decrypted on single click.Here is how you can do it.

  • Add select all option to right click context menu in Windows 7

    To select all the files and folders inside a folder (or desktop) we need to press CTRL + A key from the keyboard. However, with a small trick, we can add this option to right click context menu in Windows 7.

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

  • Market Segmentation in BriefSeptember 20, 2023
  • What is Booting?September 18, 2023
  • What is ncurses?September 16, 2023
  • What is JTAG in Electronics?September 15, 2023
  • iPhone 15 Pro Max Vs Samsung Galaxy S22/S23 UltraSeptember 14, 2023
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