How do you "autoplay" Internet Explorer?

I want to burn a CD with a small "intranet" (several html pages) on the CD and want to have Internet Explorer automatically run the first html page when the CD is inserted.  I know that I need to create a "autorun.inf" file, but how do I launch IE?  I have tried "open=iexplore" and "open=iexplore.exe", but they don't work.  What would the proper syntax be?  If you enter "iexplore.exe" at the run command after clicking on "START", it will launch IE, so there must be a way to do it without putting in the full file specification of "C:\ProgramFiles\Internet Explore\iexplore.exe".  Other's IE may be installed in a different location.
tonylclaytonAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

wolfemanCommented:
I think it would be:

call "C:\programfiles\Internet Explorer\iexplore.exe"
0
MrbreezeCommented:
Tony,
If IE is associated with the extension .html you shouldn't have to call on IE to open the file Windows would do that itself. Try just calling the file with the Open command.
                         Mrbreeze
0
MrbreezeCommented:
Open=filename.html
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

jhanceCommented:
Danger!!

Never do this:

call "C:\programfiles\Internet Explorer\iexplore.exe"

Reasons:

1) Not all systems install programs on C:

2) Not all systems install IE in Program Files\Internet Explorer\

3) Not all systems have IE.
0
tonylclaytonAuthor Commented:
I have tried "open=filename.htm" and it is not working...I do have the "htm" filetype associaton, because I can simply click on the file from Windows Explorer and IE launches.

Any other ideas?
0
MrbreezeCommented:
Tony,
Okay a few more
Open=iexplore.exe filename.htm
or
Open=iexplore.exe filename.html

                               Mrbreeze
0
tonylclaytonAuthor Commented:
I'm sorry, but I have tried that as well.  The problem is that it is not finding "iexplore.exe" because it is looking in the root directory of the CD.  There's got to be a way to launch IE without having to specify it's exact location.
0
hagurCommented:
Hello tonylclayton,

I have a possible workaround ....

I could write a very simple program for you, which you would put on your cd and call from your autorun.inf file.  This program would then execute, run the html file and therefore open whatever browser associated withit, and then instantly
terminate itself.

This is a solution ... just let me know
what you think.

My email is hagur@mmedia.is
0
jhanceCommented:
This is how MS does it:

[autorun]
OPEN=Bin\i386\ShelEx32 \setupcd\default.htm


it calls the ShelEx32.exe program.  guess what it does?  It does a ShellExecute() on the filename passed to it.

You can just copy this file off of a MS CDROM (and most do so now) that opens an HTML page when you insert it.  It doesn't seem to say "Copyright" anywhere on or in it so I guess it's fair game...
0
tonylclaytonAuthor Commented:
That sounds like the perfect solution, but I can't find it anywhere.  I've looked on Win95, Win98, WinNT, IE4, and IE5 CDs and it's not on any of those.  Can you be more explicit as to where I can find that program?
0
hagurCommented:
F***, that is exactly what I had planned my program to do ... :)

But you can't be the first to do everything ...


- Hagur
0
MrbreezeCommented:
Tony,
Try this and don't ask me why it works for me..I don't know...LOL

First make sure that the autorun,inf is a real .inf file, has a gear on it.
Then use this
[AUTORUN]
OPEN=explorer.exe filename.htm

Let me know what it does       Mrbreeze
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
joedCommented:
How about putting IE on the CD.
0
tonylclaytonAuthor Commented:
Thanks!  That worked perfectly!  I guess Windows Explorer is the mechanism to use to launch any file and then once it determined that it was an HTML, it looked up it's file type association and launched the browser.  Great job!
0
jhanceCommented:
Just a caution:

>OPEN=explorer.exe filename.htm

will only work if IE4.0 or later is installed on the machine.  

That's why MS doesn't do this as there are still a LOT of computers out there w/o IE4.0.


0
MrbreezeCommented:
Tony,
Glad it worked for you, and maybe your summation is correct. I read somewhere in an article something about the exe file changing names through different versions so I tried and it works.
                            Mrbreeze
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.