Instructables

Run command prompt when you click on your flash drive

What I'll show you how to do today is to make a message open up when you click on your jump drive from My Computer in windows. You will learn to create (or modify) an autorun.inf in the root of your jump drive and create a batch file to be run when you open your jump drive. I will also show you how to display a message when that batch file opens, and optionally add a command prompt to the end that looks like an innocent blinking underscore. Basically, from here, you can do almost anything on a computer that you can't do because of a limited account.

For rather tech suavey people, step 6 is a short version of the whole instructable.

For rather un-tech suavey people, step 7 includes everything you need, plus a simple file
to install it to your jump drive.
 
Remove these adsRemove these ads by Signing Up

Step 1: Gather Supplies

Picture of Gather Supplies
Get a working jump drive, any size. I'll be using an 8 gig Verbatim jump drive, but really you could do this with a 50 kilobyte jump drive. You will need to be running windows to use it, but any OS can make it. Open up notepad or your OS equivalent. In windows, go to Start-All Programs-Accessories-Notepad .

Also, it might help to have Folder Options under Control Panel set to show hidden files and folders.


This is the strange problem I have never seen it before. But you may apply the good resolution winrar repair header corrupt

Tool http://www.winrarrepair.recoverytoolbox.com must be useful for you
how do you extract it. seriously please tell me. i honostly dont know how to extract it
locofocos (author)  shadow wave rider2 years ago
I've attached an exe file to step 7. Just download the exe (and you probably need to change the extension from .tmp to .exe) and run it to extract everything.

Also, excuse me for the remarks I wrote about how easy it should be, etc. We tend to forget that not everyone specializes in the same areas we do. I would probably post easy questions on a cooking instructable, simple because I know computers, not cooking :) On that note, I was much younger when I wrote this, and have since learned to be a less critical person...
ok. thanks alot. i know what you mean. i know a decent amount of stuff about computers but some things i haven't done yet because i have never needed to do it. i like electronics but i am still learning
cool. this one works!!!!!:)
when you say root of the drive ou mean in control panel dont you. and the gear is blue. is that because of windows 7.
locofocos (author)  shadow wave rider2 years ago
The root of a drive refers to the highest level in the structure of folder. For example, the root of your hard drive is probably C:/. If it said C:/Users/, you would need to go up one folder to get to the root. Just go to my computer, then click on your jump drive. That should put you in the root, where you need to put the files.

You might also want to reference more updated instructables, like http://www.instructables.com/id/Autorun-a-Jump-Drive/
But if they format the drive? They will be gone also!
ELMOHTARF4 years ago
thanks alot i downloaded it
ELMOHTARF4 years ago
where is the rar file
locofocos (author)  ELMOHTARF4 years ago
Sorry about that, I think I deleted it a while back because it had some personal information in it and quite frankly this isn't a very popular instructable. I've attached it to step 7 again, so you should be good to go.
Is it supposed to close every time you type something and press enter?
You type that in notepad, not command prompt.
ledzep5675 years ago
how would you "unhide" the files? as soon asi checked hidden they disappeared instead of going transparent. maybe because im on vista?
locofocos (author)  ledzep5675 years ago
It works mostly the same as XP. I can't guide you in Vista because I don't use it, but I can refer you to this site- http://www.bleepingcomputer.com/tutorials/tutorial130.html
How would I go about hiding all the files on a drive ?
locofocos (author)  littlechef375 years ago
I tell you how to do this in step 4. Right click each file and select Properties. Then select Hidden next to the word attributes. Hit apply, then OK. The file will then become hidden. By default, windows computers are configured to not show hidden files. To enable seeing hidden files, open any folder in Windows. Click on Tools - Folder Options. Click the view tab. You will see "Hidden Files and folders". Enable "Show Hidden files and folders". Anyone who hooks the jump drive up to your computer will then be able to see the files (you might want to disable seeing hidden files and folders afterwards). On other computers, you would have to enable seeing them to see them. Because other computers are configured to not show them by default, people will have a harder time deleting them.
Automatically with a batch file ? I need a script that will automate file/folder hiding that can be run directly from a flash drive ! any ideas ?
locofocos (author)  littlechef375 years ago
Do you mean a script that will enable hidden files and folders or something that will make the files hidden? Here's something that will enable hidden files and folder being seen. Don't copy the lines. Paste it in notepad and save it as "something.reg"-

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Hidden"=dword:00000001


That will enable you seeing them. This will disable you seeing them, like default (again, don't copy the lines)-

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Hidden"=dword:00000002


That will modify the registry for you. If you can't get it to work right, I'll post the files here.
umm... it won't work.i used the easy install method. and it still doesn't work any ideas? i have no clue what is wrong with it. i'm a beginner to the cmd prompt
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!