There is a very old foxpro DOS program, which print doc via LPT1 , now user want to have soft copy . So I shared the PDF printer and OneNote printer on my local machine, and tried to map LPT1 to them as below PDF printer:
net use LPT1: \\\pdf
Printer "Send to OneNote 2013":
net use LPT1: \\\one
Both commands completed successfully, and I can see the task could be added to printer's queue by below command, but nothing actually printed
print /d:LPT1 result.txt => result.txt is currently being printed
Note: I also tried LPT2, LPT3 , but got same result
asked Apr 25, 2017 at 2:08
121 1 1 gold badge 1 1 silver badge 4 4 bronze badges
There are sometimes problems redirecting LPT1 if a physical printer port exists on the computer. If that's your case, you could try the following:
You could also try to run in a Command Prompt (cmd) as Administrator the following :
net use lpt1: /delete net use lpt1: \\\ /persistent:yes
If nothing works for you, here are a couple of shareware products that supposedly solve the problem (never tried them): DOS Printer, Printfil.
answered Apr 25, 2017 at 8:38I also tried LPT2, LPT3 , but got same result , anyway , thanks for your reply, and I'll try the products that you shared
Commented Apr 26, 2017 at 2:55The main problem isn’t redirection. Windows printer drivers can’t handle the ASCII data streams with embedded print codes as sent by a DOS program. A DOS printer will render the data stream to paper. For all other print tasks, you need an external DOS-to-Windows print processor program (more around, even freeware). Or vDos, though that is primary intended to run DOS applications in Windows 64-bit, like most Windows 10 distributions nowadays.
answered May 7, 2017 at 9:16 Jos Schaars Jos Schaars 64 2 2 bronze badges thanks, would you give some names of "DOS-to-Windows print processor program" ? Commented May 26, 2017 at 8:39Besides vDos built-in print processor, you can use: DOSPRN, DOSPrinter, WinPrint, and more, just Google. Though those are essentially Epson-only, so your DOS program has to be set to print to an Epson printer.
Commented May 27, 2017 at 9:35I had the same problem today; I found that if you are using the file's path without quotes "" , it shows the is currently being printed message but nothing is actually printed. If the file's directory has blank spaces the command-line needs all of the file's path inside quotes "" .