printing from MSDOS in Windows XP Home

M

mreich

My DOS program prints fine from a DOS prompt in WIN98, but
complains in XPHome with: "A system error has occurred--
can't open print command /dev/prn: no such file or
directory.

If printed to a file, it can be redirected through the
MORE command to LPT1. This only works from the command
line, not from the program.

Thanks.
 
M

Mikey

A. The following worked on my Windows XP PC to have DOS programs print to
LPT1 and have the print come out on my USB-attached printer:

1. In Control Panel, double-click "Printers and Faxes" to open the "Printers
and Faxes" window.
2. Right-click on the USB attached printer, then click "Properties".
3. In the Properties dialog, click on the "Ports" tab.
4. Click to check the checkbox in front of "Enable Printer Pooling".
5. In the ports listbox, click to check the checkbox in front of "LPT1:".
6. At this point, both the USB line and the LPT1: line in the listbox should
be checked.
7. Click the "OK" button.

B. For network-attached printer, see this article in Microsoft's
KnowledgeBase:
http://support.microsoft.com/default.aspx?scid=kb;en-us;314499&Product=winxp
net use lpt1 \\PC-main\laser1 /persistent:yes
You must have your "PC-main" configured to share printers. See Control
Panel, "Network Connections", LAN connection, Properties, "File and Printer
sharing for Microsoft Networks". This can open up ports on your PC-main
that might allow bad guys to get to your PC-main from an Internet
connection. Ensure you have adequate firewall to block these ports between
your home network and your Internet connection. I use Linksys router between
my PCs and my cable modem to do this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Printing from DOS 1
printing .prn files 1
Slow Printing using Windows XP 1
MSDOS Printing in XP 2
Net Use LPT1: command - Help! 1
DOS Printing 10
Printing from Ms-Dos Windows XP Pro 2
DOS Printing Under XP 7

Top