I want a programe witch automaticaly open a html typed file . Please help me to create a c++ programe

How to open internet explorer using a c++ programe

Recommended Answers

All 3 Replies

system("iexplorer.exe"); though you may want to look into calling power shell so you can use the persons browser of choice.

Or they could use an environment variable or user preferences to determine the browser of choice, and do that, as in system(getenv(DEFBROWSER)).

If it is on windows platform, you can use ShellExecute. That will open the file in the default browser.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.