Run Program?

Pages: 12
So how do I run it then? do I go Start > Run > "C:\MinGW\bin\mingw32-g++.exe"?
It's easier to add C:\mingw\bin to the PATH environment variable so you can use it from anywhere.
Like this?
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
#include <windows.h>
using namespace std;


int main() 
{
WinExec("C:\MinGW\bin\Documents and Settings\Owner\Desktop\Mozilla Firefox.exe",SW_SHOW);
system("pause");
return 0;
}
Topic archived. No new replies allowed.
Pages: 12