How to use autorun in Windows 7 from a flash drive to open a web page?

I tried to come up with a way to authorize a series of HTML pages hosted on a USB stick. These are all static pages, and they are all related to index.html in my root flash drive.

I tried to configure the autorun.inf file as follows:

[autorun]
open=index.html

I also tried this:

[autorun]
shellexecute=index.html

And I tried this:

[autorun]
open=wscript.exe autorun.vbs

where autorun.vbs looks like this:

Call WScript.CreateObject("WScript.Shell").Run("index.html", 1)

Until now, I’m not lucky that the application even appeared in the autorun dialog. I even had a more reliable autorun.inf, like this one:

[autorun]
shellexecute=index.html
label=Test Application
action=Start Test Application
shell\start=Start Application
shell\start\command=index.html
shell=start

shellexecute/open . , : "Windows 7 autorun.inf -". .

- ? - - . " ", .

: : Windows HTML , .

+3

All Articles