How to make an AutoRun File for USB drives

42 views 5 Comments

Creating a simple or complex autorun file for your thumbdrive.


You can also follow these instructions when making a CD. You just have to burn it on the cd.


When you plug a  USB drive in, you might be interested in making a program, or other things happen as soon as you plug in. The way you accomplish this is through the Autorun.inf file. The autorun.inf file is located in the root of the usb drive and tells Windows what to do automatically.
This autorun can be used to make good, or bad USB’s depending on what you like.

This tutorial covers:

Creating a USB Autorun.inf
Changing labelicon of thumbdrive
Making a new option appear in the autorun menu
Making programs automatically run when plugged in

So Read On…



Creating a USB Autorun.inf :



To create an autorun file, open Notepad and save ‘autorun.inf’’ (with quotes) and save it to the root of the drive. All it needs to have is in the first line;


[autorun]

Done!


Changing labelicon of thumbdrive:

Follow the steps in Creating a USB Autorun.inf. Before you save it, type this in in this order!

[autorun]

icon=myicon.ico


label=MyLabel

And save. Make sure the icon file is in the root of your drive.


Making a new option appear in the autorun menu:

Right, so make your autorun file and type this into Notepad:


[autorun]
icon=default
label=[yourlabelhere]

action=programname.exe
Open Program


Save it and exit. Once again, the program has to be in the root. Now, when you plug it in, the option should appear in the menu.


Making programs automatically run when the USB is plugged in:

Follow the same instructions, blah blah blah;


[autorun]
Icon=default
label=YourLabelHere
open=programname.exe

And that’s it for this tutorial!

Any questions, please ask,a nd I’ll try to answer it as quickly as possible.

Author Bio

Lokesh Singh

Hey Friends, This is Lokesh Singh. Your friend, who loves to share knowledge with friends as i believe in "Sharing is Caring". If you like our tutorials then you can send your gratitude by saying thanks or clicking any of our Sponsor ads.

5 Comments
  1. Benjie

    May 18, 2010 at 3:07 pm

    Thanks for the tutorial. Hope you also put here tutorial on how to install windows XP or 7 on USB

  2. manoj2371

    May 18, 2010 at 4:47 pm

    tks

  3. Anonymous

    June 11, 2010 at 7:25 am

    thanks

  4. Super

    July 25, 2010 at 6:54 pm

    how to make Bootable USB plz tell me Bro

  5. Fikri

    November 25, 2010 at 1:13 am

    @super : I have a software for making bootable USB, here’s the URL http://www.mediafire.com/?2b2dfsd5du9bc

Leave a Reply

Your email address will not be published. Required fields are marked *

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