Solved

DOS printing dilemma

Posted on 2007-11-27
5
962 Views
Last Modified: 2012-06-27
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
Comment
Question by:Linux_Hawk_Mike
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 30

Assisted Solution

by:SteveGTR
SteveGTR earned 100 total points
ID: 20360270
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
 

Author Comment

by:Linux_Hawk_Mike
ID: 20360512
Thanks, but nope. It is shared and all can print to it except the few old DOS apps.
0
 
LVL 30

Expert Comment

by:SteveGTR
ID: 20360521
So when you use net use you are specifying the share name "brother 5140"?
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 20360677
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
 
LVL 43

Accepted Solution

by:
Steve Knight earned 400 total points
ID: 20360692
Test it with

echo Testing > lpt1:
echo ^L > lpt1:  

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

Steve
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows updates batch files 7 221
printing full pages 7 52
HP ENVY 7645 printer 5 33
HP Printer printing gibberish, again... 15 53
VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
AutoHotkey is an excellent, free, open source programming/scripting language for Windows. It started out as a keyboard/mouse macros product, but has expanded into a robust language. This article provides an introduction to it, with links to addition…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question