10-19-2009, 06:51 PM
(10-15-2009, 01:58 PM)SylverTech Wrote: i started learning c++ 2 months ago but i still haven't figured out how to do the MSDOS commands from c++ (i know the "call" command)
like for example changing the password of the current user and so forth
What I think your trying to do is use window's commands from command prompt?
Try using the
Code:
system();
Code:
#include <iostream>
using namespace std;
int main()
{
cout << "This is a ping test.";
system("ping www.google.com");
return 0;
}
Hope this helps!
-Trinity