Dos Program in FoxPro
To answer the question, I need to k**w if your DOS session is running inside Windows. As this is the most likely scenario, I'll answer assuming that - the answer will be different for DOS only systems.
Has the faulty LPT1 port has actually been removed? If it has, why **t just alter the port number of LPT3 back to LPT1 ? This can be done with jumpers on an old style card, or from device manager inside Windows if plug and play. If **t, you can try the following:
1: If the printer is already installed in Windows on LPT3, skip to step 3:
2: Install the printer in Windows. If you don't have a suitable driver for it, you can use Generic/Text only driver.
3: Right click on the printer, go to sharing, and make the printer shareable. Use a share name of 11 or less characters and ** spaces - e.g. EPSONLX500
4: From the CMD prompt, type the command:
net use lpt1: \\%computername%\Sharename
e.g.
net use lpt1: \\%computername%\EPSONLX500
**te that you do **t need to replace %computername% with your exact computer name - the machine will do it for you.
Finally, for others reading this, you can also use this technique to print from DOS to most "intelligent" USB printers (Hi end Laser, Dot Matrix etc). It probably won't work with "dumb" GDI printers or All-in-ones where Windows has to do all the work. If the printer supports PCL or ESCP printing languages, you are probably going to be OK.
×