This might be a little advanced but I want to run an .exe file using Visual C++. I have tried to look for ways to do this but nothing I tried would run the program. With the last code I tried that work, it said the file path "is not recognized as an internal or external command, operable program or batch file. The system cannot find the path specified."
Here is the code I tried to used:
#include <windows.h>
using namespace std;
int main()
{
system ("C:/Users/User/folder1/folder/File.exe");
return 0;
}
I am using Microsoft Visual Studio Express 2013 if that helps any. I am still new to C++ so excuse me if I did something stupid.
I'm also new here and I'm looking forward to learn from you guys.
How to access mozzila from c++ code for example it will click button on any webpage ?
You can't. You probably can only if you have the Mozilla embedded browser running inside your application, but this is overkill. Besides, browsers are specifically designed to guard against this kind of thing because of the security implications.