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
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.
[autorun] open=launch.bat
and put start loading-intro.html
in launch.bat but still not working
Jul 23, 2011 at 6:28
shellexecute=
to open an .html file. It is open=
which can only start executables.
Jul 23, 2011 at 7:06
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.
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.
Jul 23, 2011 at 11:51