Link to home
Start Free TrialLog in
Avatar of geeboy
geeboy

asked on

Easy one...

The question is not much about c++.

In console mode under win9x,sometimes I run an executable which will print many information in the DOS-like console window.The problem is the information always longer than one screen,so when the printing ends,I can only see the last screen of all things got printed.
How to read it screen by screen,or to write it to a file to read all it prints to console window?

Any advice is great!
Thank you
Avatar of mournblade
mournblade

<program> > outputfile.txt

e.g. dir > dir.txt

it would put the result you see on standard output (the screen) in the dir.txt file
.. or pipe it through the "more" command:

e.g. dir | more

will send a page worth of output to the console at a time.
 

  U can try ***.exe > record.txt

or like ***.exe >> record.txt


but such ways would not succeed every
time.


for more help , you should study some
old dos commands  .
ASKER CERTIFIED SOLUTION
Avatar of Talmash
Talmash
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial