Blogger Widgets

Monday, September 3, 2012

CD drive eject & load automatically

Hi friends,
Today I will show you a magic that you can see yourself. Just copy the below code,
paste it in notepad and save it as anyname.vbs. After doing so, one new file will
be created and by opening that new file your CD drive will eject and load  
Automatically! It will not stop automatically.

To stop it-
1. Open task manager
2. Go to 'Process' tab
3. End the process of wscript.exe
 
and the code is-
 
Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count -1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count -1
colCDROMs.Item(i).Eject
Next
End If
wscript.sleep 5000
loop
 
 
Enjoy !

0 comments:

Post a Comment

To get latest updates, Subscribe here !!!

 

Get Latest Updates: Subscribe Now | Like Us On Facebook

X