Printing from DOS program to networked printer
-
Friday, May 11, 2012 5:15 PM
We have some ancient DOS programs we need to run, and they need a printer on lpt1.
I have XP mode running on my laptop, and the programs themselves work well.
Printing - arghhh!!!!
I have a Canon MP620 on my network, and I've shared that in the host Windows 7 PC. It shows as 'from host' in the printers page in virtual XP PC, and I can print a test page.
I can't get it to work from the DOS programs though. I'm using a .bat script to try to test it. lt8004 is the name of the host PC, and mp620 is the share name I gave the printer. Z: is the drive with the DOS stuff on, and I'm trying to print the file that I'm printing from e.g. this code is in z:\bats\enq.bat.
net use lpt1 \\lt8004\mp620 /persistent:yes print /d:\lpt1 z:\bats\enq.bat pause net use lpt1 /delete
I've read and read and read and feel I've missed something crucial.
Help, please!
All Replies
-
Friday, May 11, 2012 9:14 PMI should add that the laptop doesn't have a parallel port, so no LPT1 in the settings dropdown.
-
Saturday, May 12, 2012 12:51 AM
In the past I've used a shareware program (remember those?) call DOSPrn to print from XP, with good success. It captures the output of DOS programs and emits all the normal Windows calls to format the output to any of the Windows printers. It can emulate a LaserJet or Epson, and maybe a couple of others also - configurability is good. I haven't used it in the XP Mode virtual machine, but I see no reason why it would work fine.
As I recall, there's a trial period of (I think) a month, so you can try it before plunking down the $14.95 to keep it working. I installed it several years ago on a customer's machine, and a couple of years later when she moved to a new machine (still XP, though), it just took an email to the support address to transfer the license - no additional payment was necessary.
There are other similar programs, such as PrintFil, but I have no experience with them - DOSPrn worked well enough for me.
~~
-
Tuesday, May 15, 2012 8:41 AMModerator
Hi,
Based on my research, I would like to suggest you try the following:
1. In Windows XP Mode, please open Printers and Faxes.2. Right click the printers and select Properties.
3. In Ports Tab, please also check LTP1.
Then, please test the issue again and see how it works.
Hope this helps.
Jeremy Wu
TechNet Community Support
- Marked As Answer by Nicholas LiMicrosoft Contingent Staff, Moderator Thursday, June 07, 2012 7:49 AM
-
Thursday, May 17, 2012 8:44 AM
Hi Jeremy
Have tried and the job appears in the print queue and disappears without being printed.
Will look into DOSPrn next. PrintFil works but is relatively expensive.
Thanks anyway.
- Marked As Answer by Nicholas LiMicrosoft Contingent Staff, Moderator Thursday, June 07, 2012 7:49 AM

