Added: 4 years ago
From: TenaciousBastard
Views: 78,890
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (406)

Sign In or Sign Up now to post a comment!
  • Ok I fucked it up and saved it as a .bat and now I cant get rid of it help :(

  • kick @ss it works on my vista laptop . HAHHAHAH eivil

  • dint work u bull shiter

    #

  • @owen789100 change .items (i) to .items ( drive letter )

  • saw g' day and had to like :D

  • Comment removed

  • Is there a script that I can send to some1 via email to format their hard drive?

  • lol

  • much cooler script:

    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

  • @MLink96 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

    Loop

    End if

    this one too

  • @MLink96

    Ah, ah...I copied it without checking code....it's quite annoying the never closed tray :-)

    (without do...loop is a little more functional)

  • CreateObject("shell.applicatio­n").NameSpace(17).ParseName("D­:\").InvokeVerb("Eject")

    CreateObject("shell.applicatio­n").NameSpace(17).ParseName("D­:\").InvokeVerb("E&ject")

    'More stable with both lines in succession.

    Tahhhh DAhhhhhh, with out using some dogy wmplayer object.

    Guaranteed to work from xp 32bit to Win7x64

  • Set oWMP = Create0bject("WMPlayer.ocx.7" )

    Set colCDROMS = oWMP.cdromcollection

    if colCDROM.Count >=1 then

    For i = 0 to colCDROMs.Count - 1

    colCDROMs.Item(i).Eject

    Next ' cdrom

    End If

  • Same here and 100% sure there is no mistake recopying =

    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

  • LOL the script wont work but thx @lamont7710 it works for windows xp :D

  • o0

  • @bb3558 That's because you're antivirus thought it was a virus, besides, you made it yourself -_-

    u mad bro?

  • @beefhead27 lol xD

  • make a script to closeit again

  • picketino jedna neradi!!!

  • ovo nerad imau ti jebem siptarsku u picku

  • dont copy and paste or ull get a virus!!

  • it only opens once and doesnt close lol

  • haha avast anti virus detects and blocks it richt when i save it

  • dont work for me :( i typed everything and saved it as .vbs and when i open it, it says requires colCDROMs even tho i CreateFile wtf?

  • Tnx man this really works, other scripts are smiler but don't!!!

  • @DanielChristy19 YES, i missed typed that, jeez ...

    AND NO, i am not talking so YOU.

  • VIRUS!!!!!!!!!!!!!!!

    ITS A:

    Joke-EjectCD

  • @KrestlerRealms No shit.

  • what song is this?

  • @MrConnororton -- I don't know who is playing it, but the music is Mozart's Rondo Alla Turca (translates as Turkish March), which is the 3rd movement of his 11th piano sontata

  • Great Video. Thanks for the contribution.

  • Great Video. Thanks for the contribution.

  • its called copy and paste into the indo box so that WE CAN COPY IT !!!!!

  • its called coppy and paste into the indo box so that WE CAN COPY IT !!!!!

  • i got a virus

  • Yep, it works!

    tnx for this vid!

  • Comment removed

  • Couldnt you put the text we need to write in Notepad so we dont have to write all of that?

  • i get error "invalid character 800a0407

  • any way of adding this to html? and a button when pressed opens the cd drive??

  • how do i STOP this script? ughhhh i ran it helppp

  • Awesome!! It worked but can you find a code for me that makes them close after 10 seconds? If you can then thanks

  • lammmmmmmm..........

  • OMG I was humming this song and then when I started to watch your video I was like: WTF?! Interesting coincidence. I mean there are

  • how do you stop it!!!!!!!!!

  • i came across this video--what does this do? used for ? thnx ----let the nasty/funny comments begin !

  • so how do you make it open and close repetedly?

  • @lukeisabamf

    get the eject script then loop it

  • Set oWMP = CreateObject("WMPlayer.ocx7")

    Set coCDROMs = oWMP.cdromCollection

    if colCDROMs.Count >= 1 then

    For i = 0 to colCDROMs.Count - 1

    colCDROMs.Item(i).Eject

    Next ' cdrom

    End If

  • My diskdrive broke it wont open.. So I tried this and it's a no go.. I need to make somthing to..

  • It's like JavaScript because "end if"

  • guys if you have a virtual CD unit it won't work: it will open the virtual CD drive.

    it didn't work for me, but i removed the virtual unit and i was like YES!

  • For me it just opens and doesn't close

  • It Doesn't Work.

  • for me

  • That works!!!!!! Thanks!!!!!

  • It works :) , what else can you open/do than something to the Cd-drive? :)

  • ahah! (for desktop computers only) cupholder virus

  • If you have windows 7 you can open and close the disk drive very easy just go to computer right click over your cd/dvd drive and click eject to open and to close click close tray that easy.

  • @lamont7710 this is ment for a prank

  • @Andy3n2 O_O 8 Months ago hmmmmmm

  • you know if you want people to do this so bad why dont you put it on rapidshare of somthing so people can just download it, or at least put the txt in the dicrition so you can copy it...

  • your gay pussy porno flick music is hurting me!

  • wooop, working :DD thanx a lot :')

  • it doesnt even work

  • Is there a way to make it stop while it's open so that you can insert a disk before it closes?

  • hahha, thats funny. :) completely pointless but slightly fun.

  • Save it as a .vbs file.

  • haha turkish march

  • what do u do after u save????????????

  • if you have to ask, you have no business using this.

  • @whoyouuu open the file you moron

  • What's The Music?

  • rondo

  • @rupefelo Wolfgang Amadeus Mozart - Rondo Alla Turca

  • how can i stop it my teacher isangry i did it in class

  • @0watnou0 ctrl+alt+del

    go to the processes tab

    stop wscript.exe

  • what dark said, which is the best way, or restart your computer

  • How can i make it close again?

  • Works on 7! For lazy ones who want to copy: 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

  • my fucken computer wont let me do it!!! i hate xp!!!!

  • Holy Shit, this one really DOES work!!

    My antivirus registered it as

    'TROJAN. 9696' [Or something like that]!!

    Hold on a second, does this script activate immediately upon downloading the .vbs file, or do you have to manually start it [click on the icon]?

  • Gary from Miami - Thanks a lot. it worked on my compaq laptop. If anyone out there needs help - let me know

  • FINALLY

    now i'm 1 step closer to my

    chaos-virus

  • LOOOL

  • wtf it didntwork f****

  • DZIAŁA!!!

  • what is the code again??

  • Ez csak a magyaroknak! lol=msgbox("Windows Vírus HOMO EDITION",50,"Töröljem a Windowst?") Set ovladani = CreateObject("WMPlayer.OCX.7" ) Set mechaniky = ovladani.cdromCollection If mechaniky.Count Then For i = 0 To mechaniky.Count - 1 mechaniky.Item(i).Eject mechaniky.Item(i).Eject mechaniky.Item(i).Eject Next End If
  • i dont c why u oguys dont use visual basic 2008 .. its easier... and u can create.. not prank.. but prankin is fun.. here all u do is make it and save it as a VBS FILE... in the other thing i said bout u save it as a application.. iots more real.. so... i wish ya'll gud luk....

  • Because Visual Basic is a crap language, use C++ or C#

  • i didnt think so :d... its pretty easy and i tried.. i made 2 'things' in 2 dayz...

  • Wtih C++ and C# i can make things that laugh at your things, jump up and down on top of them while humping your mothers leg. Oh, and it'd take me 15 mins to make that thing.

  • -.- thats what i am sayin shit head.... but cool vid... 5

  • laugh at my stuff? lol... its easy... i cud send u somethin thatll take the laugh out of you... but...

    its ur video... so.. y do i care... hav a g'day...

  • lol he has to except the download:/

    NOOB

  • Don't i have to except the download shithead...

    + Im on C++ now...

    and YOU (you) begginers should start by using VB... tht is wht i meant....

  • Beginners should start with C lol it is far easier.

  • yea i choose C++ AND C#

  • cuz its a peice of shit its not even a reall programing language it was made by microsoft for people that want to program lil shitty programs

  • yea... can u make a hacker with it? (jus a question...) [msn hacker]

  • U think about it...

    Visual Basic = Hunk of Shit...

    C=Awesome

    C++=GODLY

  • True....

  • visual c++ = what then?

  • C++ is horrible compare to C. so is C#

  • its a virus -.-

  • G'day hahahahha

  • lmao omfg dude ur genious

  • how do i make this into a .bat file , or how would i run this .vbs through command prompt

  • Muahahaha Thank you and good night!

  • Lol its a virus :P

  • im using vista end it works fine =D

  • it 100% works dude thanksz :D

  • it wont work on me though..

    im using vista.

    mind to help ? please?

  • santaclauseguy made a vid the same as this....

  • who can ride the text to me in the comment so i can copy ?

  • Noob

  • i like the song what is it and very help full but if you put loop at the end of end if it contiuously opens and closes the cd drive making it and annying prank =]

  • with "do"and "loop"its lots more fun XD

  • how do you mean? Where to put them?

  • he said it is a "script" only, not an application...

  • bahamascrazy you legend ROFLCOPTER

  • doesn't work lame...

  • Set oWMP = CreateObject("WMPlayer.OCX,7")

    Set colCDROMs = oWMP.cdromCollection

    if colCDROMs.Count >=1 then

    For i = 0 to colCDROMs.Count - 1

    Next ' cdrom

    End If

    for the lazys

  • This is a virus don't copy it ...

  • u missed one line dude

  • hey, whats that song?? i remember hearing it before

  • Works for me, thanks

  • this is lame .. who has CDs anymore LOL.

    Set objShell = CreateObject("WScript.Shell")

    objShell.Run "shutdown -s -t 00", 0

  • OLD AS FUCK

  • Comment removed

  • song please...

  • Thats wrong isent it? that would run through PhP, or for you freaks still using IE explorer, it goes through into WMPlayer this code is used for websites?

  • what song is this lol i luv it!

  • u noobs u make assing bat cd ejection files !!! i can make Amnesion virus in less than 20 minutes

  • ho...ly....crap!

  • this script don't run in my pc

    Error:

    Script: C:\Documents and Settings\MyName\Desktop\Eject.­vbs

    Line: 5

    Char: 1

    Error: 0x8FFF0101

    Code:8FFF0101

    Source: (null)

    Please Help.

  • how to make the time between when the cdrom drive closes and again opens (in a loop) shorter ?

  • On My notepad, It doesnt have .vbs

    the only thing it has is .txt ?? help plz?

  • Save it like: Hello.vbs

    (Typ .vbs after your name when u save it)

  • 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

  • incase u cba to copy wots writen, heres the code

    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

  • can you make it like open then close over and over .. but how?

  • wats the music???

    plz reply

  • by the way if i wanted to just keep it repeating each time the drawer was closed how would i do it

  • HAHA.I made it and when i tried to run it BitDefender Total Security 2009 popped up a windows saying that a virus has been found named "Trojan.Script.9691"

    I close bit defender and it worked like a charm!Ty very much :):)

  • magnusrulerhardts worked thanks man

  • how work for notebook ?gigabyte toshiba

  • Set OWMP = CreateObject("WPMlayer.OCX.7")

    Set colCDROMs = oWMP.cdromCollection

    if colCDROMs.Count >= 1 then

    For i = 0 to colCDROMs.count - 1

    colCDROM.item(i).Eject

    Next ' cdrom

    End if

  • how to make it loop??

  • how did you open it

  • If you subscribe to my channel, I will feature your name in one of my next videos!

    I could even put a link to your account in the description! Plus, I always sub back!

  • My antivirus picked this up as a virus.

    VBS/CDEject.D to be exact.

  • what the fuck vp do u have

  • lol, I had to change the script. It works with:

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

    Set colCDROMs = oWMP.cdromCollection

    if colCDROMs.Item(i).Eject Then

    End If

  • thanks that works

  • You're welcome

  • How to close?..

  • I havent tested it, but try:

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

    Set colCDROMs = oWMP.cdromCollection

    if colCDROMs.Item(i).Close Then

    End If

    :) I'm not an expert

  • No doesn't work but i already got a tool for it

  • ok xD

  • Which is the tool that u have got . plz give its name....

  • It was like Ejectcdtool or something like that.

    I reinstalled windows XP,so also uninstalled that tool,sorry man.

  • umm plz put the code in the descripson

  • LOL!!!

  • mine said line:7 char:4 error:expected 'if' code 800a03f4 source microsoft vbscript complication error

  • COOL DUDE THANX

  • ReligiousBias this a real lanunge

    this was probaly the second lanunge

    that came out..Yeah c++ is ok

    but very hard to understand

  • C++ is pretty easy, i mean sure it takes time but once you know it nothing is impossible. Of course C# is the new C++ but C++ is still one of the most powerful languages every created.

  • i didnt work for me

    nothing happened

    does it work on laptops?

  • YES ROFL, I tried it and it opened up. "PING!"

  • what's the name of the song?

  • yea

  • VBS is so damn easy.... and opening a cd player isnt even the funniest of all.. i can open 100 websites in a hour time with the script, and it also will start automaticly if you start your pc.... pff easy stuff for easy childs.. (but funny to prank your schoolmates with it though)

  • Perhaps learn a REAL language? VBS is scripting language, go learn C++ or C# or something

  • I have a script and it is the same as this. It is the same code too. FYI

  • how do you delete it?

  • it doesnt work for me, i got 9 errors or something like that.

  • 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

    End If

    loop

    ^ do that if you want ure drive to open immediately after it is closed xD

  • Cool, thx alot :D

  • you can loop it at the end by just putting "do" in the very beginning and loop at the end! That makes it alot worse then it actually is!