Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do i perform Window commands?
#5
(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();
command. An example would be an MS ping command.

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 Blackhat
Reply


Messages In This Thread
How do i perform Window commands? - by SylverTech - 10-15-2009, 01:58 PM
RE: How do i perform Window commands? - by HatredTrinity - 10-19-2009, 06:51 PM
RE: How do i perform Window commands? - by MrD. - 10-22-2009, 11:35 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)