USB - autorun a web address

Q: How to open a web site automatically when inserting a USB.

I currently have 2 files on it:

autorun.inf
start.url

autorun.inf contains 3 lines:

[autorun]  
ShellExecute=start.url
open=start.url

start.url contains 2 lines:

[InternetShortcut]
URL=http://cnn.com

Loads ok on a Vista machine, but does not load on other XP or Windows7 machines.

Any clue what to change?


Solution 1:

Microsoft stopped Autorun from working on Windows due to security issues. As Chris said, I'm surprised it worked on Vista.

The Microsoft patch may have also been applied to Windows XP as well. But theres little you can do to make whatever you want to run use Autorun.

Solution 2:

SamLogic article suggests two possible options, but they are rather workarounds than real fixes:

  • use a USB-drive with firmware that presents the drive as a CD (e.g. U3)
  • create a program that scans for inserted USB-drives