Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Open a webpage using a batch file

  • 05-12-2005 06:46PM
    #1
    Registered Users, Registered Users 2 Posts: 691 ✭✭✭


    Hi,

    I was wondering if you know the code to open you browzer (firefox) and automaticaly open say 1 or 3 webpages in the tabs to my favourite pages.

    SO when i click it it opens firefox with 3 tabs and 3 pages that i can change

    thanks

    Jonny


Comments

  • Closed Accounts Posts: 1,502 ✭✭✭MrPinK


    "C:\Program Files\Mozilla Firefox\firefox.exe" "www.site1.com|www.site2.com|www.site3.com"
    
    If you installed firefox somewhere else, change the path as appropiate.


  • Registered Users, Registered Users 2 Posts: 691 ✭✭✭$ausage$


    Thats great thanks only problem is that it finds my cashed site so it dosent update everytime i open it up. any ideas?


  • Closed Accounts Posts: 1,567 ✭✭✭Martyr


    Look up WMI classes on MSDN, using VBScript, can do almost anything.:cool:


  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    In XP all you have to do from the command prompt...

    start http://www.google.com

    will take your default browser and even open in a new tab if you have your browser set that way.


  • Registered Users, Registered Users 2 Posts: 7,546 ✭✭✭BrokenArrows


    MrPinK wrote:
    "C:\Program Files\Mozilla Firefox\firefox.exe" "www.site1.com|www.site2.com|www.site3.com"
    
    If you installed firefox somewhere else, change the path as appropiate.


    Thats cool.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 19,396 ✭✭✭✭Karoma


    $ausage$ wrote:
    Thats great thanks only problem is that it finds my cashed site so it dosent update everytime i open it up. any ideas?

    Change your browser settings..

    Also, if this isn't just for you:
    I'd recommend hardcoding the browser path to FireFox (or Opera,etc. that has tabbed browsing) but also code a start (See: Hobbes' post above) as a fallback to cater for different browsers/machine setup.
    This is where batch file solutions obviously fall short - the code gets longer.. VBScript may be a better way of approaching this if there are possible differences..


  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    Start should handle every browser you have installed as long as they launch webpages from double clicking. You really don't have to get into that fancy programming. :)


  • Registered Users, Registered Users 2 Posts: 19,396 ✭✭✭✭Karoma


    Hobbes wrote:
    Start should handle every browser you have installed as long as they launch webpages from double clicking. You really don't have to get into that fancy programming. :)
    But IE doesn't handle | / tabbed browsing -so he'll have to cater for this exception... As it seems preferable (i.e. was in the OP) - it's best to explicitly specify browsers that can handle it first.


  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    IE7 is supposed to. but point made. :)


Advertisement