I kind of got lost on this thread because I couldn't tell if the person was
trying to print to a USB attached printer from DOS or a parallel port
attached printer from DOS.

In general, when I need to print from DOS I do the following:

   - Print to a file if the program supports it.  If the program does not
   support printing to a file there are a lot of old utilities that load as
   TSRs that will intercept printer output and write it to a file for you.
   - Use mTCP netcat to move the file to a printer on port 9100.  As
   pointed out earlier, most network attached printers listen on port 9100 and
   will blindly accept whatever you send on that port.  So you can send ASCII
   text, Epson FX codes, HP PCL or Postscript.  Just be sure to use "binary
   mode" on netcat when doing this.  My 12+ year old Brother laser printer can
   still print graphics generated for ancient epson printers 40 years ago.
   - If your printer doesn't have networking or port 9100, get the file
   over to a computer the printer is connected to, and then do a binary copy
   of the file to the printer.  Same basic effect.
   - I thought about writing an mTCP based LPR program years ago but there
   is just not enough demand for it.

I've also done the inverse - used modern code to generate ancient printer
files, transferred the binary file to a PCjr, and then drove the serially
connected PCjr specific printer from the PCjr. ;-0


-Mike
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to