What command line argument must I use in my C program, to open a site, say "http://www.google.co.in/" in Internet Explorer?
What command line argument must I use in my C program, to open a site, say "http://www.google.co.in/" in Internet Explorer?
Hmm...you will need to know socket programming and include any necessary libraries that will aid in parsing HTTP content. If you are looking to make a system call, not wise, have you reviewed how curl or wget is used?
Use system. If you're not familiar with using command-line arguments do a search for argc and argv.
Something like that.Code:#include <stdlib.h> ... system("C:\\Program Files\\Internet Explorer\\iexplore.exe \"http://www.yahoo.com\"");
system - C++ Reference
Last edited by Epy; 11-25-2009 at 10:01 AM. Reason: forgot double slashes, fail