DOS printing from Win7
We have had an admin XPP machine replaced by a Win7 Pro machine. The XPP machine had a DOS program printing to LPT1 when I tried the following on the Win7 machine:-
net use LPT1: \\win7pc\printershare /persistent:yes
the command completes but the DOS program doesn't print to the local printer attached to USB001.
I've had a look at the config on the XPP machine and within the ports tab of printer properties, both LPT1 & USB ports are ticked which I didn't think was possible.
Things yet to try:-
1) Look in BIOS for LPT settings.
2) Issue the NET USE command using elevated permissions.
Any advice gratefully received
There was a trick that used to work in XP and Vista that may work but I can't quite remember it. I think it was deleting LPT1 in device manager then setting up a local printer pointing to LPT1 and running that map command. This meant that it found its way indirectly.
Dos programs suck.
DOS programs do suck. If it's a simple program I may rewrite it in VB but getting the printing working buys me some time. Thanks
Have you considered using DosBox or WinPrint?
Two things I can think of:
DOS doesn't like spaces in printer share names
Have you tried XP Mode in Windows 7 Pro, Ultimate or Enterprise?