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.
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
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
- Best Notepad tricks and hacks
- Make a virus that disable Mouse
- LOCK FOLDER WITH SIMPLE TRICK
- Virus to Format Hard Disk!!!
- Trick to make your computer speak !!!
- Macromedia Dreamweaver 8+key
- How to Disable Right-Click on Desktop
- How To Fix Error Reporting in XP???
- Make the folder INVISIBLE without hiding
- CHANGE YOUR DRIVES BACK GROUND
- How to Speed Up Windows XP in Seconds???
- Eject cd/dvd rom
0 comments: