3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Really Autorun Your Jump Drive

Really Autorun Your Jump Drive
This trick will let you run a program on your jump drive automatically. The program will run as soon as you plug your jump drive in without clicking or doing anything else.

Step 1: The Autorun.inf File
Step 2: Finish

***Extras***
Step 3: Example
Step 4: Running multiple programs automatically
Step 5: Fixing the Music Bug
Step 6: Other autorun.inf tricks
Step 7: Adding a background to the USB Drive
Step 8: Credits

This is my first instructable so comments are very welcome. Thanks.
 
Remove these adsRemove these ads by Signing Up
 

Step 1The Autorun.inf File

The Autorun.inf File
The Autorun.inf file tells a computer what to do when your USB is inserted. So we are going to tell it to run a certain program automatically.

In Notepad (or another text editor) type or copy and paste the following

   [Autorun]
   shellexecute=someprogram.exe
   useautoplay=1

Replace "someprogram.exe" with the program you want to run, usually a .exe file. Make sure theprogam file is stored on the root of the jump drive or include the directory.
  
Example
 Notepad.exe is stored at  "E:\programs\Text\notepad.exe"  so you would replace "someprogram.exe"  with  ".\programs\text\notepad.exe" .

Save this as Autorun.inf and move it to the root of your jump drive.

   Explanation of the Autorun.inf File
    The first line identifies this as an Autorun file, the second line defines
    the default command, and the third line tells the computer to run the default command
    automatically.
« Previous StepDownload PDFView All StepsNext Step »
7 comments
Feb 16, 2012. 3:52 PMvulpes133 says:
I've done this and yet I cannot get a background working for my drive. I have tried code from other sites for the desktop.ini but it didn't work either. I have checked the names of my file and image and they are correct. Does this not work on windows 7?
Mar 31, 2011. 12:26 PMdraconis537 says:
it's not working. AND I DON'T KNOW WHY!!!!!!!!! I think I did some thing wrong. here is a step by step screenshot list of my actions:
Apr 2, 2011. 2:38 AMdraconis537 says:
jumpdrive is made by Lexar and I am using XP, unfortunately I didn't get every thing I wanted set up by April fools day. I still need the info for the next opportunity but I am not in such a rush. Thanks for the info that you did give me, I will go try this.
Nov 21, 2010. 6:37 AM07855 says:
Thanks, dude
Oct 22, 2010. 4:00 AMinforussle says:
How would you get rid of the backround?

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
3
Followers
6
Author:NeverWrex