What is a Question?
Questions are a super-easy way to get answers from the Instructables community. Learn how to build, do, or make anything! You just ask a question and the community will provide answers. You choose the best answer!
Submit a Forum Topic! The forums are the place to ask questions, share a cool project from another site, find collaborators for your latest project, or discuss anything of interest to the Instructables community.
Do you have a lot of images to upload?
If you prefer to upload your images before you submit, then this is for you.
Remember to tag them so they will be easier for you to find when you are viewing your library.
You can also upload images when you are creating your posts.
Did you find a bug or have a suggestion for us?
We appreciate all the help our users give us in tracking down bugs and making the site better for everyone.
PhotosPhotos
Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.
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.
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.
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.
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!
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.
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
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.
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
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