Eject cd/dvd rom

Posted by Anonymous  |  at  13:07 No comments

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.
  • 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
  • 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.

About the Author

Khawaja Ali is the author of this blog he is 18 year old white hat hacker, web-designer and a young programmer currently living in Khushab and studing in Punjab College Jauharabad.He love to help others thats why running this blog.Thanks for visiting here.

Get Updates

Subscribe to our e-mail newsletter to receive updates.

Share This Post

Related posts

0 comments:

Template Powered By Blogger.| Distributed by Blogger Skiller