Thursday 6 January 2011

How To Autorun Programs From USB Flash Drive

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:
[autorun]
open=PStart.exe
action=Run PStart Program

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

icon=PStart.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.

No comments:

Post a Comment