USB autorun.inf - auto-open website without being prompted

N

nicoqhj

Hi.
I'm trying to auto-open a web site when plugging in a USB drive.
(My actual question is at the bottom.)

My autorun.inf file currently looks like this:
[autorun]
open=example.bat
action=www.example.com

Where example.bat contains this line: "Start http://www.example.com"

This is all good, but the user gets prompted before example.bat
executes.

I managed to bypass this by the following entries:
[autorun]
open=example.bat
shell\open\command=example.bat
useautoplay=1

In this example, using Windows XP, example.bat gets executed without
asking the user.
In Vista however, the user still gets prompted.

My question: Is there _any_ way of making a web site launch after
plugging in a USB drive, in Win XP and Vista?

Thanks in advance.
 
P

PA Bear [MS MVP]

My question: Is there _any_ way of making a web site launch after
plugging in a USB drive, in Win XP and Vista?

Yes, but anyone whose computer is configured to allow USB drive Autoruns
needs to have their head examined!
--
~PA Bear

Hi.
I'm trying to auto-open a web site when plugging in a USB drive.
(My actual question is at the bottom.)

My autorun.inf file currently looks like this:
[autorun]
open=example.bat
action=www.example.com

Where example.bat contains this line: "Start http://www.example.com"

This is all good, but the user gets prompted before example.bat
executes.

I managed to bypass this by the following entries:
[autorun]
open=example.bat
shell\open\command=example.bat
useautoplay=1

In this example, using Windows XP, example.bat gets executed without
asking the user.
In Vista however, the user still gets prompted.

My question: Is there _any_ way of making a web site launch after
plugging in a USB drive, in Win XP and Vista?

Thanks in advance.
 
N

nicoqhj

Yes, but anyone whose computer is configured to allow USB drive Autoruns
needs to have their head examined!

Unless users need to make some custom changes, would you please
explain how?
I've read about it all day, but still haven't reached the point where
the web site just pops up in both XP and Vista (without confirmation).

Thanks.
 
E

ELF2k8

Hi.
I'm trying to auto-open a web site when plugging in a USB drive.
(My actual question is at the bottom.)

My autorun.inf file currently looks like this:
[autorun]
open=example.bat
action=www.example.com

Where example.bat contains this line: "Start http://www.example.com"

This is all good, but the user gets prompted before example.bat
executes.

I managed to bypass this by the following entries:
[autorun]
open=example.bat
shell\open\command=example.bat
useautoplay=1

In this example, using Windows XP, example.bat gets executed without
asking the user.
In Vista however, the user still gets prompted.

My question: Is there _any_ way of making a web site launch after
plugging in a USB drive, in Win XP and Vista?

Thanks in advance.

Just use the code above and edit example.bat to say:

@echo off
start iexplore http://siteyouwant.com/

Hope this helped!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top