Discussion Locked

How can I capture a print from a DOS pro

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a windows95 pc running a DOS based application that allows me to print various reports from a menu. These all go to my parallel printer. I would like to capture the print into a file so that I can manipulate it with Excel or copy it onto a floppy disk. If it was a windows program then I know it is easy to caputure a print to a file, but as this is DOS can it be done?

5 replies

by pvp

I have a vague recollection that this can be done using the assign command, as:

assign lpt1 prtout.txt

You should be able to refine this answer by:

assign /?

by msc

assign seems to be one of those commands that microsoft has removed from dos as it's moved to windows. whilst it's in my dos manual when I get a dos prompt from windows it does not exist as a command.

thanks for the suggestion

by ustutz

Go to the printer window (start -> settings -> printers). Select "Add a Printer" icon. When prompted for making it the default printer, and "DOS Programs use this printer", answer in the affirmative. For the port, select "FILE". You may have to make that a "network printer" rather than local. In the later case select a bogus port (LPT3:) to map to it. Make sure that your DOS application allows you to select LPT3 (some may stop at LPT2). Note: If you make this your default printer, you won't have any problems in DOS, but you'll have to remember to change your printer when you print from other applications. Depends on the flexibilty of your DOS program.

by msc

my dos program would not allow me to use anything other than lpt1. For information I solved the problem by adding a network carc to the pc, then adding a networked printer (shared on a unix system) to the pc and then capturing dos prints to this printer. By disabling the printer in the unix system I was able to capture the spooled print. I could have probably used another pc and done something similar.

thanks for your suggestion

This discussion is closed to new replies.