Open CD-Rom using notepad

568 views

Open CD-Rom using notepad trick

In notepad

Type the following (better copy and paste)

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

Save this file as cdrom.vbs (or any name with .vbs extension )

close notepad

Double click to open cdrom.vbs

Enjoy!!!!!



« Open Command prompt (cmd) through Notepad Make matrix text floating using Notepad »
Posted on Friday, January 30th, 2009 at 4:46 pm under Notepad tricks | RSS 2.0 Feed

One Response to “Open CD-Rom using notepad”

  1. jaro Says:

    Hi there, when i try to do this trick i get a mesage that there is an error on the encoding, when I save the file what kind of encong should I use?

    Thanks


Post Comment

You must be logged in to post a comment.



ComputerEducationWorld.com All Rights Reserved © RSS | CBSE | Education Boards Of India | What is My IP?