Advertisement

04.01.2008 at 03:27PM PDT, ID: 23287526
[x]
Attachment Details

Auto open an HTML depending a condition

Asked by Gertone in MS DOS, Internet Explorer Web Browser, Microsoft Windows Operating Systems

In the autorun of a CD, I would like to open Internet Explorer with a specific HTML file on the disc

I prefer to organise all of that in a batch file (command line in Windows)

I need to open a different file based on the version of the IE installed
so the batch file shoudl contain the following logic (pseudocode)

if IE version (found in registry)  >= 6
    open iexplore test.htm
else
   open iexplore test2.htm
end

Two issues here
- how do I write the batch file
- how can I launch Iexplore with a local file

I know that "start test.html" works, but opens the default browser, not necessarily IE
I found that start iexplore http://blablabla.com/test.htm" works, but I can't combine the two

Thanks for your help

Geert

Start Free Trial
 
Loading Advertisement...
 
[+][-]04.02.2008 at 06:00AM PDT, ID: 21262518

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MS DOS, Internet Explorer Web Browser, Microsoft Windows Operating Systems
Sign Up Now!
Solution Provided By: matrixnz
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.02.2008 at 08:04AM PDT, ID: 21263800

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628