Tune The Tech

Get a better understanding of your PC and improve your user experience.

Fun with VBS script – Open DVD/CD Drive infinitely

We can do many funny things with VBS scripts and one of the most famous trick is ejecting a cd/dvd drive infinitely. 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: open.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

Tune-The-Tech

Advertisements

Filed under: Funny Tricks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Tune The Translator

Website Translation Widget
Tune The Tech


Technology... the knack of so arranging the world that we don't have to experience it.
Tune The Tech

Visitor Stats

  • 11,078 Views

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 15 other followers

November 2011
S S M T W T F
« Oct   Dec »
 1234
567891011
12131415161718
19202122232425
2627282930  

Tutorials and Reference Manuals

Educate Yourself Beginners & Experts

Learn to Create Websites
Review https://infotune.wordpress.com on alexa.com

Copyright

Protected by Copyscape Duplicate Content Detection Tool © All Rights Reserved - Any content reblogged from infotune.wordoress.com must adhere to the terms of © Copyright

Site meter

VISITOR STATS

%d bloggers like this: