View Single Post
Old Jan 22nd, 2006, 7:56 PM   #2
jayme
Professional Programmer
 
jayme's Avatar
 
Join Date: Nov 2005
Location: Canada
Posts: 495
Rep Power: 0 jayme is an unknown quantity at this point
Send a message via MSN to jayme
You're having trouble double clicking a batch file? Opening a batch this way has the same effect as clicking on it. Well here it is anyways:

#include <iostream>
using namespace std;

int main()
{
cout << "Press enter.";
cin.get();
system("start c:/myprogram.exe"); //A bat file has .bat extension by the way, not an exe.
return 0;
}
__________________

Quote:
Originally Posted by Mohamed Jihad
Durka durka!
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it.

Download Code::Blocks now!
jayme is offline   Reply With Quote