A small description

Make the best out of your PC. Here you can find some nice, useful tips and tricks that can be used to tame your PC. I hope you will find the tricks posted here useful. I have made the language as simple as possible so that it can be understood even by a noob. If you have any queries or want help feel free to question, I will try to shelp you out. If you have any good trick that you want to share with us, please tell us. Your suggetions/comments are always invited.

Google translate

October 27, 2008

Make the DVD drive go in and out

This trick will make your dvd drive go in and out automatically. However this may not work in laptops as once the drive is opened it has to be closed manually, but this will work in a different way if any one try to close the drive in laptops it will open automatically.

Copy this script in a notepad:::


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 now save it as run.vbs

guys, to stop this just open task manager and in processes tab u can see wscript.exe, rightt click on it select "end process tree "!!! dats it !! the loop wll now stop !! dont select "end process " as it wll not stop the loop !!! 
cheers..

No comments: