| Comments ]

eject-cd-dvd-drive-vbs-script We can do many funny things with VBS scripts and one of the most famous trick is ejecting a cd/dvd drive infinitely. In our previous posts we had given some of the best notepad tricks but not this type of funny(some what prank) vbs script. So lets see how to do it.
Step #1: Open up your notepad and copy paste the following code.
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
Step #2: Now name it as you wish with .vbs extection EX: openup.vbs
That’s it your done, to activate it just double click the file you just created. If you wish stop it open task manager by pressing ctrl+alt+del > click on process tab > find the process wscript.exe > highlight it and click End process(image).
Get Free Updates:
*Please click on the confirmation link sent in your Spam folder of Email*

About Author

Just cooking some really really delicious items which includes ingredients like Ethical Hacking, Networking, tip and tricks etc..., and you know what, you are going to love it.
Vamsi is a CEH[Certified Ethical Hacker], got his CCNA[Cisco Certified Network Associate] and all of the above he is a fun loving tech savvy. You can always contact him using this link.
 
Back to Top