Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Publishing to a CD

Status
Not open for further replies.

jk813790

Technical User
Mar 6, 2001
2
0
0
GB
I am trying to publish a web to a CD-R to use for promotional purposes but am having trouble making an "Autorun" file. There was a recent Microsoft Assistance Centre article on how to do it and they said to include the following autorun.inf file in the root directory of the cd

[autorun]
open=start index.htm

Index.htm is the file I want to open but it just won't have it.

Is there more to it than this?
 
For example to create a cd that will autorun the program ‘setup.exe’ would require an AUTORUN.INF file similar to:

[autorun]
open=setup.exe
icon=setup.exe
To create a cd that will autorun to open the html file ‘index.htm’ would require:

[autorun]
ShellExecute=index.htm
icon=index.htm
However, since not all versions of Windows support ‘ShellExecute’ a less elegant alternative would be:

[autorun]
open=command /c start index.htm
icon=index.htm
Be aware that the use of ‘command’ and ‘start’ restrict this to machines running Windows.

hope this helps :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top