• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 968
  • Last Modified:

DOS printing dilemma

Need help with a printing situation.
2003 Server environment set to a Domain.
Mostly XP-Pro Workstations.
Printer needing access to located on only Win 2000 PC.
Printer is a Brother 5140 Laser via USB.

Several of the XP PC™s New with no LPT ports are running some older DOS applications.
There is no setting in these applications, they just default to LPT1

Created .bat file and run:
NET USE delete lpt1
NET USE lpt1 "\\shipping-1\brother 5140"
Pause

But I get error:
System error 67 occurred
The Network name cannot be found

System error 85 occurred
The local device name is already in use

Then that is it. I have the printer added and all Windows apps can print to it.
But the DOS apps do nothing.

Thanks in advance for any help with this issue.
0
Linux_Hawk_Mike
Asked:
Linux_Hawk_Mike
  • 2
  • 2
2 Solutions
 
SteveGTRCommented:
If you open the properties of the printer I believe there will be a Sharing tab. Click the Share this printer radio button and use a Share name. Try that out.
0
 
Linux_Hawk_MikeAuthor Commented:
Thanks, but nope. It is shared and all can print to it except the few old DOS apps.
0
 
SteveGTRCommented:
So when you use net use you are specifying the share name "brother 5140"?
0
 
Steve KnightIT ConsultancyCommented:
First error is because you should be using

net use lpt1: /delete

and I imagine the second is because LPT1: is already mapped because the first command didn't work.

You may also want to change the share name to something without a space in.  You can check existing connections with just this from a cmd.exe prompt:

net use

net use lpt1: \\shipping-1\brother5140

Steve
0
 
Steve KnightIT ConsultancyCommented:
Test it with

echo Testing > lpt1:
echo ^L > lpt1:  

where ^L is control and L which is a Form Feed.

Steve
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now