[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

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.
0
tonylclayton
Asked:
tonylclayton
  • 5
  • 4
  • 3
  • +3
1 Solution
 
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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
 
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

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 5
  • 4
  • 3
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now