Windows Vista Tips

Windows Vista Tips > Newsgroups > Internet Explorer > how to use bat file to open serveral html files wiht one instance of ie8

Reply
Thread Tools Display Modes

how to use bat file to open serveral html files wiht one instance of ie8

 
 
GS
Guest
Posts: n/a

 
      06-28-2010
when I tried on ie8 with bat file like
"<<i8dir>>iexplore" h1.html
"<<i8dir>>iexplore" h2.html
"<<i8dir>>iexplore" h3.html

they all opened in one single tab not in multiple tabs
what is the correct way to do this.

I am getting tired of manually opening a number of test html files for my
app development and test


 
Reply With Quote
 
 
 
 
PA Bear [MS MVP]
Guest
Posts: n/a

 
      06-28-2010
Developer-specific resources include:

MSDN IE Development Forum (post such questions here instead)
http://social.msdn.microsoft.com/For...opment/threads

Tip: When posting in Developer forums, always include a link to your web
site or test pages in your first post.

IE Developer Center
http://msdn.microsoft.com/en-us/ie/default.aspx

Learn IE8
http://msdn.microsoft.com/en-us/ie/aa740473.aspx


GS wrote:
> when I tried on ie8 with bat file like
> "<<i8dir>>iexplore" h1.html
> "<<i8dir>>iexplore" h2.html
> "<<i8dir>>iexplore" h3.html
>
> they all opened in one single tab not in multiple tabs
> what is the correct way to do this.
>
> I am getting tired of manually opening a number of test html files for my
> app development and test


 
Reply With Quote
 
Rob
Guest
Posts: n/a

 
      06-28-2010
PA Bear [MS MVP] <> wrote:
> Developer-specific resources include:
>
> MSDN IE Development Forum (post such questions here instead)
> http://social.msdn.microsoft.com/For...opment/threads


Tip: When sending someone away to another place, make sure it actually
does exist.

> Tip: When posting in Developer forums, always include a link to your web
> site or test pages in your first post.


Tip: when pasting a canned reply, make sure it is relevant to the question.

> IE Developer Center
> http://msdn.microsoft.com/en-us/ie/default.aspx
>
> Learn IE8
> http://msdn.microsoft.com/en-us/ie/aa740473.aspx
>
>
> GS wrote:
>> when I tried on ie8 with bat file like
>> "<<i8dir>>iexplore" h1.html
>> "<<i8dir>>iexplore" h2.html
>> "<<i8dir>>iexplore" h3.html
>>
>> they all opened in one single tab not in multiple tabs
>> what is the correct way to do this.
>>
>> I am getting tired of manually opening a number of test html files for my
>> app development and test

>

 
Reply With Quote
 
GS
Guest
Posts: n/a

 
      06-28-2010
found out I can use vbs script.


Dim ie
set ie = CreateObject("InternetExplorer.Application") 'InternetExplorer

ie.navigate(file1.html)
ie.navigate( file2.html, 2048)
....

the key to new tab is the extra argument value 2048.

now it's a cinch
as for bat file, I could not and have not found a way


"PA Bear [MS MVP]" <> wrote in message
news:eVI$...
> Developer-specific resources include:
>
> MSDN IE Development Forum (post such questions here instead)
> http://social.msdn.microsoft.com/For...opment/threads
>
> Tip: When posting in Developer forums, always include a link to your web
> site or test pages in your first post.
>
> IE Developer Center
> http://msdn.microsoft.com/en-us/ie/default.aspx
>
> Learn IE8
> http://msdn.microsoft.com/en-us/ie/aa740473.aspx
>
>
> GS wrote:
> > when I tried on ie8 with bat file like
> > "<<i8dir>>iexplore" h1.html
> > "<<i8dir>>iexplore" h2.html
> > "<<i8dir>>iexplore" h3.html
> >
> > they all opened in one single tab not in multiple tabs
> > what is the correct way to do this.
> >
> > I am getting tired of manually opening a number of test html files for

my
> > app development and test

>



 
Reply With Quote
 
PA Bear [MS MVP]
Guest
Posts: n/a

 
      06-28-2010
We shall alert the media.

GS wrote:
> found out I can use vbs script.
>
>
> Dim ie
> set ie = CreateObject("InternetExplorer.Application") 'InternetExplorer
>
> ie.navigate(file1.html)
> ie.navigate( file2.html, 2048)
> ...
>
> the key to new tab is the extra argument value 2048.
>
> now it's a cinch
> as for bat file, I could not and have not found a way
>
>
> "PA Bear [MS MVP]" <> wrote in message
> news:eVI$...
>> Developer-specific resources include:
>>
>> MSDN IE Development Forum (post such questions here instead)
>> http://social.msdn.microsoft.com/For...opment/threads
>>
>> Tip: When posting in Developer forums, always include a link to your web
>> site or test pages in your first post.
>>
>> IE Developer Center
>> http://msdn.microsoft.com/en-us/ie/default.aspx
>>
>> Learn IE8
>> http://msdn.microsoft.com/en-us/ie/aa740473.aspx
>>
>>
>> GS wrote:
>>> when I tried on ie8 with bat file like
>>> "<<i8dir>>iexplore" h1.html
>>> "<<i8dir>>iexplore" h2.html
>>> "<<i8dir>>iexplore" h3.html
>>>
>>> they all opened in one single tab not in multiple tabs
>>> what is the correct way to do this.
>>>
>>> I am getting tired of manually opening a number of test html files for
>>> my
>>> app development and test


 
Reply With Quote
 
Robert Aldwinckle
Guest
Posts: n/a

 
      06-28-2010


"GS" <> wrote in message
news:...
> when I tried on ie8 with bat file like
> "<<i8dir>>iexplore" h1.html
> "<<i8dir>>iexplore" h2.html
> "<<i8dir>>iexplore" h3.html
>
> they all opened in one single tab not in multiple tabs
> what is the correct way to do this.



If you made those Favorites (pointed to by .url files) you could try this
(e.g. from the directory where you kept them):

for %u in (*.URL) do "%u"


>
> I am getting tired of manually opening a number of test html files for my
> app development and test



I have been meaning to figure out how to use PowerShell instead of a cmd
window. ; )


Good luck

Robert Aldwinckle
---


 
Reply With Quote
 
Jeff Strickland
Guest
Posts: n/a

 
      06-29-2010

"GS" <> wrote in message
news:...
> found out I can use vbs script.
>
>
> Dim ie
> set ie = CreateObject("InternetExplorer.Application") 'InternetExplorer
>
> ie.navigate(file1.html)
> ie.navigate( file2.html, 2048)
> ...


Do you simply add 1024 to the 2048 to make new tabs for additional files?

2048 for a tab, 3072 for the next, 4096 for the next, and so on?







 
Reply With Quote
 
GS
Guest
Posts: n/a

 
      06-29-2010
thx
what is difference of using url instead of
"<<ie8dir>>\iexplorer" f1.html
cd /d d:\mytestDataFolder
for %i in (test*.html) do %i


 
Reply With Quote
 
GS
Guest
Posts: n/a

 
      06-29-2010
no, 2048 means use a new tab for the navigate instead of using the currently
active tab when you don't specify the 2nd argument

Note the vbscript will stop the moment it navigates to a file or site with
disallowed script/activeX even if you have the ignore all
On Error Resume Next

"Jeff Strickland" <> wrote in message
news:i0bnu5$sln$...
>
> "GS" <> wrote in message
> news:...
> > found out I can use vbs script.
> >
> >
> > Dim ie
> > set ie = CreateObject("InternetExplorer.Application") 'InternetExplorer
> >
> > ie.navigate(file1.html)
> > ie.navigate( file2.html, 2048)
> > ...

>
> Do you simply add 1024 to the 2048 to make new tabs for additional files?
>
> 2048 for a tab, 3072 for the next, 4096 for the next, and so on?
>
>
>
>
>
>
>



 
Reply With Quote
 
Robert Aldwinckle
Guest
Posts: n/a

 
      06-29-2010


"GS" <> wrote in message
news:...
> thx


> what is difference of using url instead of
> "<<ie8dir>>\iexplorer" f1.html
> cd /d d:\mytestDataFolder
> for %i in (test*.html) do %i



I don't know. Does it do what you want too?...

<cmd_output OS="W7 X64">

C:\>assoc .html
..html=htmlfile

C:\>ftype htmlfile
htmlfile="C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE" -nohome

C:\>assoc .url
..url=InternetShortcut

C:\>ftype InternetShortcut
InternetShortcut="C:\Windows\System32\rundll32.exe "
"C:\Windows\System32\ieframe.dll",OpenURL %l

</cmd_output>

E.g., you might have to find the right combination of options to make sure
that you didn't open multiple windows, even if they were being started under
the same base iexplore.exe task. FWIW the one I suggested works for me but
for all I know that may only be because of my popup options or something.


Robert
---

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cool Video Editor ddn85602 Windows Vista Music, Pictures and Video 0 06-12-2010 09:02 AM
Document Imaging problem after applying Office 2003 sp3 bill foster Windows Update 1 04-03-2010 12:02 AM
Cannot open files on my PocketPC on work computer Bob ActiveSync 3 03-26-2009 01:16 AM
Difficulty with EFS & importing PFX file Aaron Solomon Windows Vista File Management 0 08-24-2007 09:08 PM
What is up with Vista's file system? Stan Shankman Windows Vista File Management 7 08-15-2006 07:59 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59