Discussion Locked

Setting up autorun.inf for html presenta

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I've been struggling to learn how to open a .html file off a cd by editing the autorun.inf in the root directory of the cd.

I have reviewed other similar questions in TechRepublic which have helped to a point. I now have the autorun.inf setup asfollows:
[autorun]
open=IEXPLORE.exe "index.htm"
Internet explored open up but cannot find http://index.htm. index.htm is in the root directory of the cd along with autorun.inf. In order to open index.htm I have to open d:\index.htm once IE is running. How do I get it to find the file directly?

Marty

8 replies

by paulo alexandre

I believe that, by default, IE will assume you're passing it an URL. Because the parameter you specify has no protocol information, it (cleverly) adds http:// to it. I believe you can solve that problem by prefixing the parameter with a backslash "\". So the result would be:

[autorun]
open=IEXPLORE.exe "\index.htm"

This way it will assume that the parameter is a folder on the current drive.

Hope this helps

Paulo

by mthawsh

Changing the file to
[autorun]
open=IEXPLORE.exe "\index.htm" caused the following result.

Cannot find 'file:///C:/index.htm'. Make sure the path or Internet address is correct.

I also forgot to state earlier that unless I put a copy of iexplore.exe on the cd I receive error D:\ THe device is not ready.

by don christner

Here is an autorun.inf that I have used on a CD. Acrobat reader is on the CD, windows explorer is assumed to be on your harddrive (obviously only works on Windows machines). So, it is possible to launch something that isn't on the CD.

[autorun]
open=acrobat5\reader\AcroRd32.exe cci_main.pdf

shell\View Our Readme File\command=acrobat5\reader\AcroRd32.exe readme.pdf

shell\Explore CAD drawings\command=explorer.exe /n,/e, \drawings\

The previous line shows "explore CAD drawings" when you right-click on the CD drive. If you then select that choice, it shells out to windows explorer in the "drawings" folder of the CD. I can not remember what the /n and /e do, but I think they are options for windows explorer.

Don

by don christner

I believe that shelling out to an executable is the key to getting it to run something that is not on the CD.

This discussion is closed to new replies.