3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Removed

All gone...
 
Remove these adsRemove these ads by Signing Up
 

« Previous StepDownload PDFView All StepsNext Step »
75 comments
1-40 of 75next »
Mar 27, 2012. 10:41 AMtheprogrammer says:
if you just want it to open once type this

Set oWMP = CreateObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection

if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next ' cdrom
End If


bye bye
Apr 7, 2010. 8:03 AMTemo Vryce says:
Nice Ible.

For those that are interested. You can save the .vbs file to a USB Key, run it from the key and then remove the key from the computer. The drive will continue to open on it's own until you kill the wscript task.
Mar 5, 2012. 11:06 AMjamesbond207 says:
this DAM THING DON;T WORK, but its really interesting!
Jun 4, 2011. 10:49 PMPoiujm says:
good idea, but can someone tell me how to make it turn on every time i press space?
Jun 15, 2010. 3:06 PMTailslvr7_7 says:
Good idea... And maybe you could attach it to an autorun script so all you need to do is insert the key, wait a few seconds, and then take it out.
Jun 4, 2011. 10:47 PMPoiujm says:
Lol it's processes, not programs... took me bout 15 mins to turn it off HA!
Jan 26, 2008. 9:09 AMTailslvr7_7 says:
(removed by author or community request)
Jul 26, 2008. 10:57 PMQwertyuioLP says:
have you renamed it to end with .vbs?
Jun 15, 2010. 3:09 PMTailslvr7_7 says:
Lol, I found my old comment just today... I just preformed this instructible very easily... xD
Aug 22, 2009. 7:27 AMmatstermind says:
(removed by author or community request)
Aug 23, 2009. 12:13 AMQwertyuioLP says:
make sure it says all files down the bottom
Aug 23, 2009. 5:58 AMmatstermind says:
i did that
May 7, 2009. 3:53 AM0river0 says:
yay that .vbs thing works yay not how do i stop it
Mar 4, 2010. 3:41 PMccrh2008 says:
Hint: to cause maximum frustration with computer, place in hidden folder in startup folder
Nov 25, 2009. 2:09 PMpink_man_ says:
what if you have 2/3 cd drives???????
Jan 21, 2008. 12:22 PMcomodore says:
it looks very interesting, but it doesn't work. WHY? I do everything the Instructable says but it just won't work. i copy the text and paste it on the text document, save it in my documents and named cdrom.vbs and it still won't work.
Aug 22, 2009. 7:36 AMmatstermind says:
you need to save it as (something).vbs
Aug 28, 2009. 3:59 PMcomodore says:
I did that, still won't work??? I am a bad programer! :(
Apr 13, 2008. 12:00 PMfwjs28 says:
do u type do???
Aug 22, 2009. 7:36 AMmatstermind says:
yes
Dec 25, 2008. 11:06 AMstrangelord0 says:
Perhaps you should change it to this, so you don't have a delay:

do

Set oWMP = CreateObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection

if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next ' cdrom
End If

loop

Look out your finger may be bashed of xD
Aug 22, 2009. 7:33 AMmatstermind says:
it's the same as the code in the instructable
May 7, 2009. 3:55 AM0river0 says:
arr it wont stop run away how do i kill it tell me plz.!!!arr befor its to late!!!
Aug 10, 2009. 3:18 PMtechwiz24 says:
might be able to use killtask from cmd, or something like that...
Apr 17, 2009. 4:12 AMisketch93 says:
Is it possible to modify this code so that it will just make the CD drive open and close like crazy until you terminate wscript process?
Aug 19, 2008. 8:23 PMAfroMann says:
I tried it out and a screen popped up saying that windows can't open the file because it doesn't know what created it, why does it do this?
Jan 1, 2009. 1:47 PMomnibot says:
Most likely you don't have visual basic installed, it could also be that your windows is not set to open this filetype as a visual basic program. I don't recommend you get VB since it spawns viruses.
Jan 26, 2009. 11:41 PMawang8 says:
Visual Basic does not spawn viruses. Visual Basic is a great program and everyone who is interested in this sort of stuff should use it. And no, I'm not a VB advertiser!
Jan 27, 2009. 1:00 AMomnibot says:
You're right, VB does not "spawn viruses". I find though that it does allow for the easy creation of very destructive programs with far to many possibilitys. The close integration between VB, Outlook and Windows explorer is a safety-issue of such proportions that I do not allow them on any of my computers and do not install them on my friends computers. The result is that although VB-programming is a closed book to me I have not suffered any virus-attacks since the 90's.
Oct 25, 2008. 6:05 PMnetwarrior says:
CoOoOoOoOoL i did it in the school , our teacher gathered his tools and quit ,
Aug 21, 2008. 7:04 AMlolcat360 says:
can you just make it eject once?
Jul 28, 2007. 6:44 PMEpic Pants says:
When running, an error pops up identifying character 1 of the ninth line code 8fff0101. the trays do open though.
Nov 15, 2007. 8:10 PMBl4cK_kNiF3 says:
ya i got the same problem.... maybe its vista?
Nov 17, 2007. 7:58 PMEpic Pants says:
nope, im in xp still.
Aug 7, 2008. 8:18 PMextremegtafan says:
XP ROCKS!!! Ok, I'm done now.
Aug 7, 2008. 8:19 PMextremegtafan says:
I'm not done. MICROSOFT!!! WHOOOOOOO! YEAH! Now I'm done.
Jun 9, 2008. 5:53 AMsmartefface says:
well nice job meeze
people getting different errors ok i think u dont mind if i help a bit

the error is (so far i think by reading comments) u use loop on drives if anyone have virtual drives or somthing like that it will print error

try that one
do
Set oWMP = CreateObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection
colCDROMs.Item(0).Eject
loop

maybe u like that code

Set oWMP = CreateObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection
do
colCDROMs.Item(0).Eject
loop
May 23, 2007. 2:33 PMgamer says:
i think u need visual basic to use it, but i dont have it
Jun 8, 2008. 8:19 AMHardCoreHacker says:
Visual basic?
1-40 of 75next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
1
Followers
3
Author:DavidRobertson(davidr.me)