Live Economic Calendar Powered by Forexpros - The Leading Financial Portal

Saturday, October 10, 2009

Open CD/DVD drive Single Click


Open or close cd/dvd drive with a single click in Windows
--------------------------------------------------------------------------------
Open or close cd/dvd drive with a single click in Windows

The CD/DVD drive in windows can be ejected or closed with a single click in Windows by performing a simple trick.
Image and video hosting by TinyPic
To open the cd/dvd drive.. follow the steps :

+ Open notepad and copy the following code in it :


Set oWMP = createObject("WMPlayer.OC X.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


+ Now save this file as anyname.vbs
+ When you click it, the disk drive will be opened.






To close the cd/dvd drive .. follow the steps :


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


+ Now save this file as anyname.vbs
+ When you click it,the disk drive will be closed.

Share your experiences in comments after performing this cool hack.

Related Articles :


Stumble
Delicious
Technorati
Twitter
Facebook

0 comments:

VIDEO

ENTER-TAB1-CONTENT-HERE

RECENT POSTS

ENTER-TAB2-CONTENT-HERE

POPULAR POSTS

ENTER-TAB3-CONTENT-HERE
 

www.ursramu.blogspot.com Copyright © 2010 LKart Theme is Designed by Lasantha