Saturday, May 14, 2011

Automatic CD Rom Open And Close

Try This... But Be Care full... Really Be care full...
 
Copy this script in notepad and save as run.vbs
u'll see a magic that ur cd-rom is running in and out

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
 
 and if u want to end the total process then follow the below process
 
 
End the process WScript.exe from the Processes tab of the 
task manager 
 
 
Warning - Hey, i'm not checked this one if it suceeded then post a comment 
really i'm not responsible for any hardware or software errors

No comments:

Post a Comment