Join us at IRC!
Capitalism is an Island of wealth in a sea of poverty
Wednesday, February 08, 2012
Navigation
Members Online
Total Online: 49
Web Spiders: 23
Guests Online: 43
Members Online: 6

Registered Members: 67248
Newest Member: den10101
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

C++ I/O with command prompt

Sqwertle
Member

Posts: 41
Location:
Joined: 25.09.09
Rank:
Wiseman
Posted on 12-02-10 00:37
Lets say I'm using a command such as system("ipconfig") on a windows machine, how might I go about taking the information given from using ipconfig and storing it in a text file? Is this even possible?

Edited by Sqwertle on 12-02-10 00:39
Author

RE: C++ I/O with command prompt

wolfmankurd
Member



Posts: 1519
Location: UK
Joined: 30.05.05
Rank:
God
Posted on 12-02-10 00:57
Use redirects. For example > is write to, and >> is append.

ipconfig > output.txt



BY READING MY POST, YOU ACCEPT IT AS IS AND AGREE TO MY DISCLAIMER OF ALL WARRANTIES, EXPRESS OR IMPLIED, AS WELL AS DISCLAIMERS OF ALL LIABILITY, DIRECT, INDIRECT, CONSEQUENTIAL OR INCIDENTAL, THAT MAY ARISE FROM THE USE OF THIS (MIS)INFORMATION.


Widowmakr@hotmail.com http://LetsHackStuff.com
Author

RE: C++ I/O with command prompt

fashizzlepop
Member



Posts: 482
Location: Old folks home.
Joined: 08.04.08
Rank:
Uber Elite
Posted on 12-02-10 02:58
Or look for a way to do this without limiting your host OS?


"The definition of insanity is doing the same thing over and over again and expecting different results.”
~Albert Einstein~


fashizzlepop@gmail.com http://csullivan.codeinspire.net/
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

160 x 600
Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2004 - 2012. Since 3rd December 2004.