How to autorun programs from USB Flash Drive
If you're new here, you may want to subscribe to my RSS feed to receive the latest updates. Thanks for visiting!
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.
- 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.
So guys did you find this short tutorial useful? Any more tips that you’d like to add?
Popularity: 11% [?]


Intesting. I knew th facts but these details give a clear shot
Great job. I’ve never touch about flash drive autorun or portable software before. This post motivating me alot to use it.
Nice post shankar , stumbled .
Great post! Well, I just got one question… Will this tutorial work for Windows XP Portable?
dude, having a small problem with the USB thingy. I have Transcend MP3 player and its autorun file (a system file, which cannot be deleted or quarantined) has a virus that has been detected by one of the computers. Now my questions,
Can I remove this virus, with out letting it effect my other computers?
How harmful is the system virus, sorry forgot the name for virus, it is trojan?
http://mokshjuneja.blogspot.com
Nice tutorial. Thanks for the mention.
Thanks for the stumbles!
@Ashish: Thanks. Glad you found it useful.
@Haris: It will work on Win Portable as well.
@Moksh: See if this page helps you out.
@Nirmal: Welcome.
A helpful post about using the Portable applications from Pen drive
nice post shankar, quite useful tip
@Praveen, Ram: Glad you liked it
Hi Shankar - thanks for this tip. Perfect for press packs and corp presentations!
You’re welcome, Rax Lakhani
USB Autorun…
Kurz notiert: Wenn jemand ein bestimmtes Programm von einem USB-Stick beim Einstecken automatisch starten lassen möchte (Autostart), hilft dieses kleine Tutorial weiter: How to autorun programs from USB Flash Drive
……
Damn…..You beat me to writing this post
But maybe, I’ll do some improvisation.
@TechZilo: Sorry about that
Nice one, definately helpful. Thanx for sharing…
Nice! It worked. Thx much….
@Vaibhav, Chris: Welcome.
Great tips for dummies as normal!
@Benedict: Thanks.
hi…it is looking fine but not work udnder XP SP2..
just give as blank icon and is doesnt run EXE file
What a fake tutorial,
A lot of people know much more than you, please upgrade your information about computer and IT, and then try to write useful and rich articles and tutorials.
I ask you, what about Windows XP,Vista ?
Of course they do not let you make some programs autorun on USB flash drives easily.
Raj, maybe the computer you are running it on has autorun disabled?
How to enable:
http://www.moonvalley.com/products/rwavdc/enable.htm
dude, thanks for the tip… it helped me… thanks again…