giovedì, aprile 23, 2009

USB Flash Drive Auto launch

As far as I can tell it’s pretty difficult to make a USB drive launch a file as seamlessly as a CD-ROM will. However, you can make it show up in the list of items to run, and launch it from there. Here is a sample autorun.inf that you would place at the root directory of your drive.

[autorun]
icon=icon.ico
open=folder/file.html
action=Launch Name
shellexecute=folder/file.html