Open or close cd/dvd drive with a single click in xp
The CD/DVD drive in windows can be ejected or closed with a single click Windows XP by performing a simple trick.
+ Now save this file as anyname.vbsSet 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
+ When you click it, the disk drive will be opened.
To close the cd/dvd drive .. follow the steps :
+ Now save this file as anyname.vbsSet 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
colCDROMs.Item(i).Eject
Next ' cdrom
End If
+ When you click it,the disk drive will be closed.
Share your experiences in comments after performing this cool hack.
WORKING
ReplyDeletehttp://rapidshare.com/files/270441537/DVD_TRAY_OPEN_VB_SCRIPT.rar
ReplyDeleteradymade script