Post by Bob Eager Post by Andy Burns Post by Carlos E.R.
There was a command in MsDOS that would redirect the console to the
Something about copy con prn
Yep, CTTY it is. It works with serial ports too. I even used it recently
(i.e. sometime in the last decade), someone in the diy OS group was
asking people to run some kind of USB host controller identification
program on different computers and it was a DOS program. I had an old
Thinkpad X20 so I ran it on that but the problem was getting data out of
that computer when it was booted to DOS (PXE boot over the network). No
network access from DOS, no USB access either, the only HD was formatted
for Linux so ext3 or ext4. And no floppy drive.
So by using CTTY COM1: and a null modem cable I could get the program's
output over serial port to another computer and go from there. Of course
that sort of thing doesn't work with software that writes directly in
display memory but luckily this wasn't the case here.