Autorunning a broswer from a CD

Posted on 2002-05-07
Last Modified: 2013-12-03
This is not strictly a programming question, but this is probalby the best topic for it...

in need to create a CD that has an HTML file on it and that opens the file automatically on the user's browser when the CD is inserted in the computer.

I have used autorun.inf files before to run EXEs, but now I need to open a specific file using a non-specific EXE.  i..e the EXE is on the computer, but I don't know where or even what it is called (might be IE might be netscape etc.)

I need this for windows 95 and later.  

Can this be done?

(note my current solution is to run an EXE on the browser that uses Shellexecute() to open the browser, but I'd like a more direct solution--if there is one.)
Question by:nietod
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 86

Expert Comment

ID: 6994031
An autorun.inf like

open=start mypage.htm

should do it...
LVL 22

Author Comment

ID: 6995008
When i tried that I got an error that says that start.exe is not found.
LVL 86

Expert Comment

ID: 6995087
Aaah, I remember that problem :o)

Too stupid of me, "start" is a shell builtin command - you could either use an application the just calls "ShellExecute()"  with eht 1st argument or try

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

LVL 22

Author Comment

ID: 6995318
open=mypage.htm is what I 1st tried and it didn't work.  It really requires an executable with that syntax.

I'll keep this open a little longer to see if anything else developes...
LVL 10

Expert Comment

ID: 6995930
on win2k you can call shellexecute in the autorun file


as for earlier windoze versions you are stuck with writing a exe and starting that to load your page

LVL 11

Expert Comment

ID: 7381793
Hi, if you still need the answer:
You can "run" your mypage.htm in next way:

File autorun.inf
OPEN=ShelExec mypage.htm

ShelExec.exe is Win application that executes mypage.htm
You can download it for example from:

Expert Comment

ID: 7674825
The best way I have found to do this is simply utilizing the start command through dos.

For example in the autorun.inf put

then in start.bat simply run -
start site.htm

From experience this works on any os and runs virtually instantaneously, opening up the default browser - whatever it may be.

LVL 86

Expert Comment

ID: 10668344

Accepted Solution

CetusMOD earned 0 total points
ID: 10743285
PAQed - no points refunded (of 50)

Community Support Moderator

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question