Thread: Programmatically opening Internet Explorer to multiple URLs

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    1

    Question Programmatically opening Internet Explorer to multiple URLs

    I’m trying to add a new feature to an application of mine and can’t quite get it right.

    I want to be able to click on a button and have one “instance” (I think that’s the term) of Internet Explorer open up, with about half a dozen tabs open within that - each with a different website.

    I am able to do it fine with just one URL, but don’t know how to do multiples.
    Basically, I do this now ...

    ret = spawnl(P_NOWAIT,
    ProgramFileName.c_str( ),
    ProgramFileName.c_str( ),
    Url.c_str( ),
    NULL);

    where ProgramFileName is “C:\Program Files\Internet Explorer\iexplore.exe”
    and Url is one the URL of the websites I wish to have opened in one of the tabs.


    Any suggestions ?

    Thanks

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by bcppny View Post
    I’m trying to add a new feature to an application of mine and can’t quite get it right.

    I want to be able to click on a button and have one “instance” (I think that’s the term) of Internet Explorer open up, with about half a dozen tabs open within that - each with a different website.

    I am able to do it fine with just one URL, but don’t know how to do multiples.
    Basically, I do this now ...

    ret = spawnl(P_NOWAIT,
    ProgramFileName.c_str( ),
    ProgramFileName.c_str( ),
    Url.c_str( ),
    NULL);

    where ProgramFileName is “C:\Program Files\Internet Explorer\iexplore.exe”
    and Url is one the URL of the websites I wish to have opened in one of the tabs.


    Any suggestions ?

    Thanks
    I may be totally wrong about this, but I seem to recall reading someplace that IE will open multiple URLs if you place them on the command line separated by semicolons...
    Code:
    ie http://www.google.com;http://yahoo.com
    You're going to have to experiment with it...

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Why IE of all browsers? Why not the default?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Opening Multiple Files in sequence
    By wujiajun in forum C++ Programming
    Replies: 7
    Last Post: 01-16-2006, 08:47 PM
  2. problem while opening files from multiple directories
    By V.G in forum Windows Programming
    Replies: 2
    Last Post: 11-08-2004, 03:29 PM
  3. Opening files for use by multiple functions
    By Hexxx in forum C Programming
    Replies: 1
    Last Post: 11-02-2003, 10:55 AM
  4. Opening Multiple files
    By Obroni in forum C Programming
    Replies: 4
    Last Post: 04-02-2003, 07:38 AM
  5. opening multiple files sequentially
    By moonwalker in forum C Programming
    Replies: 5
    Last Post: 08-20-2002, 09:57 PM

Tags for this Thread