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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

autorun a cd od a website

Status
Not open for further replies.

cspgsl

Technical User
Apr 5, 2002
112
CA
This might not be the place for this, if so I apologize. I ahve created a website and want to save it to a CD for distribution to a customer. I want to make it run when he places the disk into his drive. I have created an "autorun.inf" file with the command "[autorun]open=index.htm" but nothing happens when I place the disk in my drive. I am testing it on a CD-RW at the moment if that makes a difference. Using FP98 on Win XP Pro
Thanks.
 
First copy the "start.exe" file from your c:\windows\command directory to your CD-ROM. then use

[autorun]
open=start.exe index.html

One disadvantage of this method is that it will display a transient DOS window before the default browser fires up.

Try this in an autorun.inf file:
[autorun]
OPEN=Start \README.htm
ICON=SC.ICO

If that one does not work, you can try this one:
You will need to create two files. An Autorun file and and a batch file. Autorun files will only open up executables. Since an html document is not an executable you need the batch file to start the web browser.
This is what I usually use:
This is the autorun file (named autorun.inf):
[autorun]
OPEN=start.bat
ICON=fav.ico,0

(** fav.ico is just the name of the icon I have also saved on the CD.)

This is what I have for the .bat file (named start.bat):
start index.html
exit

Here are some other suggestions as well:


__________________________
Corey

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top