How to autorun programs from USB Flash Drive

Topics Computer, Hardware on August 28th, 2007

How to autorun programs from USB Flash DriveLike we have autoplay feature on CDs, it’s possible to autorun programs and applications from your removable USB flash drive, provided you use it on XP SP2.

Here’s a quick guide on how to autorun portable applications from your USB drive.

- Open Notepad
- Type in:
[autorun]
open=.exe
action=Run Program
icon=.exe
label=My Portable PC
- Save the file as autorun.inf
- Put the file in the root of your USB flash drive
- The next time you insert your removable drive into your PC, the specified program will autorun from the USB drive

Here are some important notes on what the autorun.inf file contains:

open=.exe
The open option specifies the program that should autorun. You must use relative paths here. Do not specify the drive letter since it may vary from PC to PC.

action=Run Program
This describes the action that will be performed. This parameter is used by Explorer in the autoplay dialog.

icon=.exe
Specifies the icon to be used for the USB drive. The icon can be fetched from an .EXE file or it can be in the normal .ICO format. (more on changing icons here)

label=My Portable PC
The label parameter can be used to specify the name of the drive.

Share and Enjoy:
  • del.icio.us
  • StumbleUpon
  • Facebook
  • Google
  • Furl
  • Live
  • MisterWong.DE
  • NewsVine
  • Reddit
  • Slashdot
  • Technorati
  • YahooMyWeb
  • BlinkList
  • description
  • Fark
  • Netvouz
  • Spurl
  • MisterWong
  • Webnews.de
  • E-mail this story to a friend!
  • Print this article!

Tags:, , , , , , , , , , , , , ,

Related posts

5 Responses to “How to autorun programs from USB Flash Drive”

  1. 1
    MS Windows Vista Compatible Software Says:

    Like we have autoplay feature on CDs, it’s possible to autorun programs and applications from your removable USB flash drive, provided you use it on Windows XP SP2. Here’s a quick guide on how to autorun portable applications from your USB drive.(more…)autoplay feature, autorun inf, computer, exe file, Hardware, inf file, portable pc, program icon, pstart, removable drive, usb drive, usb flash drive, Windows, windows explorer, windows xp sp2

  2. 2
    Slashdot - Firehose Says:

    [...] How to autorun programs from USB Flash Drive[->] 2007-08-28 16:53 Bookmark by pcripsbox on Tuesday August 28, @04:53PM [...]

  3. 3
    autoplay usb flash drive XP: Web Search Results from Answers.com Says:

    [...] possibilities. …search.techrepublic.com.com/search/ Microsoft+Windows+XP+and+USB+Flash+Drive.htmlHow to autorun programs from USB Flash Drive | PCTips BoxHow to autorun programs from USB Flash Drive Like we have autoplay feature … from your removable [...]

  4. 4
    Max Says:

    Tried this in my autorun file to launch the Pstart exe, but it didn’t work.

    I have Xp SP2. It did change the label of the drive to “portable drive”, but no autorun.

    Help!

  5. 5
    corps Says:

    It doesn’t work as windows doesn’t support Autorun from USB. It will Autoplay meaning it will popup a box to choose what to do and the program you specify in the Autorin.inf will be displayed but it won’t autoplay.

    Some XP workstations do seem to do it but most don’t. Like my old win98se machine could hot swap USB devices but it wasn’t supposed to be able to.

    Vista can autorun directly from USB. U3 drives have firmware to trick PC that a partition is a CD to get the autorun to work.

    Check the forums on portableapps.com

Leave a Reply