Enabling autorun for a USB flash drive.
I'm a big fan of USB flash drives.. I first heard about the U3 flash drives some time ago, seems like it was pre-baby so at least last fall. I liked the idea of being able to sync desktop settings to my usb drive and have them applied when I plug into another system. I'm considering picking up one of the U3 compatible drives, but in the meantime I thought I'd see if I could come up with a poor mans solution.
The heart of the U3 niftyness is the autostarting. You plug in the USB drive, programs launch, settings are changed, all without you doing anything. Autorun has been around for years, since Windows 95 at least. To make your CD automatically start an application when you insert it, you create a file called autorun.inf and place it in the root of the CD rom. Say you want a file called foo.exe to autorun, your autorun.inf file would look like this.
-
[autorun]
-
open=foo.exe
-
icon=foo.exe
But with XP came something called Autoplay. Autoplay scans the media and pops up it's little nag window asking you what you want to do with your new found media. Without hacking the registry, you can't change this behavior. Some newer USB drives support autorun insertion. Out of the 5 drives I have, none of them supported it. All of them caused XP to display the Autoplay dialog. BUT you can add your own action to the Autoplay dialog box.
-
[autorun]
-
action= Run Foo
-
icon=foo.exe
-
open=foo.exe
Which then displays in the Autoplay dialog box.

For my main 512MB flash drive, I use the Pstart menu. This is a lightweight freeware menu program. It stays resident in your tray and allows you access to the menu by either right-clicking on it or opening up the full interface.
So with one click after inserting my flash drive, I have this nice menu to launch my portable applications from.

I'll investigate some of the syncing and automatic workspace configuration options in a later post. Right now I'm looking at Migo. None of the applications on my flash drive cost me a dime. Portableapps.com has a great listing of some of the more popular portible applications, as well as a couple of portable applications suites you can download and put on your flash drive.
-
http://haacked.com/ Haacked
-
Alex McMahon
-
alex21008
-
alex21008
-
H4xsDn13d
-
Bob
-
shisho
-
http://www.f3cp.com.au Jozz
-
rene
-
MRG
-
MRG


