Shankar Ganesh

Just another WordPress site

How to autorun programs from USB Flash Drive

with 24 comments


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.

Autorun on USB Flash Drives

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

  • Open Notepad
  • Type in:
    action=Run PStart Program
    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:

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 PStart Program
This describes the action that will be performed. This parameter is used by Windows Explorer in the autoplay dialog.

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.

So guys did you find this short tutorial useful? Any more tips that you’d like to add?

Written by admin

August 11th, 2007 at 2:05 pm