How to Open CD/DVD Rom From Desktop

Posted By: Unknown - Tuesday, February 18, 2014

Share

& Comment



     This is simple script that let you open your CD/DVD Rom directly from your desktop. Follow below steps to do this :-






  •          Open Notepad and copy below codes in to it.




<-------------------------------------------------------------------------------
--------------------------------------------->
       


         Set oWMP = CreateObject("WMPlayer.OCX.7" )
         Set colCDROMs = oWMP.cdromCollection
         if colCDROMs.Count >= 1 then
         do
         For i = 0 to colCDROMs.Count - 1
         colCDROMs.Item(i).Eject
         Next ' cdrom
         For i = 0 to colCDROMs.Count - 1
         colCDROMs.Item(i).Eject
         Next ' cdrom
         loop
         End If


<-------------------------------------------------------------------------------
--------------------------------------------->




  • Save the file as ejectcd.vbs and you will similar icon as below.



 




  1. Double click this saved file and it will eject you cd rom.
  2. To stop this script go to Task manager > Process  and search for wscript.exe and click on END Process as shown in below image.












    Watch the video to Learn More....








    3 comments:

    Copyright © 2014 ALL REAL PC TRICKS™

    Designed by ALL REAL PC TRICKS