Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Autorunning a broswer from a CD

Posted on 2002-05-07
11
Medium Priority
?
247 Views
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.)
0
Comment
Question by:nietod
[X]
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
11 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 6994031
An autorun.inf like

[autorun]
open=start mypage.htm

should do it...
0
 
LVL 22

Author Comment

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

Expert Comment

by:jkr
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

open=mypage.htm
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 22

Author Comment

by:nietod
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...
0
 
LVL 10

Expert Comment

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

shellexecute=mypage.html

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

Paul
0
 
LVL 11

Expert Comment

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

File autorun.inf
----------------------------------
[autorun]
OPEN=ShelExec mypage.htm
----------------------------------

ShelExec.exe is Win application that executes mypage.htm
You can download it for example from:
http://www.naughter.com/shelexec.html
0
 

Expert Comment

by:lummos
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
[autorun]
open=start.bat

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.



0
 
LVL 86

Expert Comment

by:jkr
ID: 10668344
feedback?
0
 

Accepted Solution

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

CetusMOD
Community Support Moderator
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

618 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