2
1
How to Autorun a .html file from USB drive? File should be run on Mac and Windows Both.
I'm using this but it's not working
[AutoRun]
shellexecute=loading-intro.html
2
1
How to Autorun a .html file from USB drive? File should be run on Mac and Windows Both.
I'm using this but it's not working
[AutoRun]
shellexecute=loading-intro.html
3
HTML files are not executable and therefore they can not be run.
If you use an autorun.inf file on the medium, you need to specify the executable that will render the file. Only executables perform a task. Other files don't "do" anything. Types that execute include .exe, .scr, .chm, and .com.
0
According to the Autorun.inf Wikipedia page, you can use:
shellexecute=[filepath\]filename [param1 [param2 ...]]
However, Autorun only works with CD/DVD on Vista or later, IIRC, and has recently been disabled in XP, for security reasons, as mentioned by Randolph West.
It seems to work fine on all versions of Windows before XP, not just Vista and 7. It also works fine on my XP, which is up to date. But I installed a scanner for optical drives which may have re-enabled it. – Abraxas – 2011-07-23T11:39:41.840
@Abraxas: I don't think you read that last sentence how I intended it to mean. XP used to run autorun.inf from any drive, including fixed hard drives, but does not any more. An updated installation of XP has the same behaviour as Vista and Win7 now. The link above gives more details. – paradroid – 2011-07-23T11:51:35.533
I just used
[autorun] open=launch.batand putstart loading-intro.htmlin launch.bat but still not working – metal gear solid – 2011-07-23T06:28:15.3474
Autorun has been disabled on USB as of the last couple of months, for security reasons. See http://support.microsoft.com/kb/971029.
– None – 2011-07-23T06:32:14.6231"Start" only works with executables, too. You can't "start" a file that does not do anything. – Abraxas – 2011-07-23T06:34:44.560
You can use
shellexecute=to open an .html file. It isopen=which can only start executables. – paradroid – 2011-07-23T07:06:22.673It does not seem to work that way for me. But, picture CD's usually have a slide-show executable on them. Windows would no doubt consider starting a program from a CD as a security risk. So it would be easy enough to put a portable browser on the CD and then set autorun.inf to start the browser. shellexecute=chrome.exe loading-intro.html – Abraxas – 2011-07-23T11:35:18.100
@Abraxas: I think that must be because that ability has been disabled on XP, and it never worked like that on Vista and Win7. – paradroid – 2011-07-23T11:52:52.803
@Abraxas: Your first comment is incorrect. The
startbuiltin command can launch any file type registered with Windows, the same way Explorer does. You can even give it URLs. – user1686 – 2011-07-23T15:32:52.677