: : : : Hi, let me explain what I am trying to do and how you
may be able to help. : : : : I am writing a windows shell (in VB
due to the fact that it is the only language I know) to run some
old Turbo Pascal programs. I have created a shell that works
fine with basic windows commands such as dir, ping, ipconfig
etc, but when I run these TP programs I cannot capture the text
sent to the screen. : : : : The author (an old friend) doesn't
have the time to transfer them to Delphi, but may well be
prepared to modify the original source code to meet my needs if
it is very simple or alternatively allow me to do so. As I know
nothing about Pascal, I was wondering if someone could explain
the different ways Pascal writes to the screen, and which ways
are possible to capture via redirection to a file, for example,
by adding ">output.txt" to the end of the command line. : : : :
Thanks in advance. : : : : : : : DOS shell pascal programs write
to the screen as any other shell aplications. They use Write()
and WriteLn() p