Monday, December 28, 2009

How to make Auto run USB drive

Hi All,

Below are the sample code for making A USB drive Autorun.

1. Crate a file autorun.inf
2. Paste the below code on autorun.inf and save it on USB drive.
3. Change "firefox.exe" based opon ur requirment.
4. Will work on XP only

[autorun]
open=firefox.exe "http://www.mozilla.com/"
shell\open\command=firefox.exe "http://www.mozilla.com/"
useautoplay=1