Making a Console Application open a webpage?

This is a discussion on Making a Console Application open a webpage? within the C++ Programming forums, part of the General Programming Boards category; Hi, I know how to make a console application open a browser say like by entering system("start iexplore.exe"); but that ...

  1. #1
    Registered User
    Join Date
    Mar 2013
    Location
    England
    Posts
    9

    Making a Console Application open a webpage?

    Hi,

    I know how to make a console application open a browser say like by entering
    system("start iexplore.exe");
    but that just goes to the browsers default start up page. If someone could supply me with
    the code to make it open a website of my choice (if its possible to on a console app) I would be really grateful .
    Thank you for any help or advice given,

    Joe

    (BTW I'm using Microsoft Visual C++ 2010 Express)
    Last edited by Joewbarber; 03-23-2013 at 12:38 PM. Reason: Text on one line

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,687
    Did you try
    system("start iexplore.exe http://www.google.com");


    Internet Explorer Command-Line Options
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,308
    Try typing "Start /?" in at the command line and see if that gives you any useful information.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Open a WebPage
    By epi_jimenez in forum C Programming
    Replies: 14
    Last Post: 04-12-2010, 10:27 PM
  2. Making a mac application ?
    By FrederikPot in forum Tech Board
    Replies: 2
    Last Post: 12-18-2007, 06:14 PM
  3. Open a new program from a C++ application
    By axr0284 in forum C++ Programming
    Replies: 9
    Last Post: 12-29-2004, 11:29 AM
  4. making a stealthy win32 console application?
    By killdragon in forum C++ Programming
    Replies: 3
    Last Post: 09-08-2004, 02:50 PM
  5. Replies: 1
    Last Post: 11-23-2001, 09:01 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21