Dos printing stops and disconnects printer mapping

Posted on 2001-07-27
Last Modified: 2007-12-19
We have a urgent printing problem is starting to anoy the endusers.  They have two PC's (Windows 98), trying to print to the network HP 8000 N printer, which is shared on the network via HP JetDirect Print server.

The problem that they are having is happening to both of the two PC's, when trying to print to a HP 8000 N printer via their DOS package (SUN 426).  They belive to have the printer mappings built into the login script:

NET USE LPT2: \\dellboy\FINANCE$ <\\dellboy\FINANCE$>  /YES

What is happening is that when users print to the printer they receive a SUN program error:


This message normally appears because there is no printer port capture (ie NET USE LPT2 ....)
They close sun and when they go back into the program it is ok again, around 30 minutes later they receive the same error message again when trying to print.
When the problem ocurs they can print to the printer in word etc but the connection in DOS is always recaptured when entering the program.

Has anyone encountered issues similar to this in other DOS applications? Any information no matter how small would be really appreciated :)
Question by:Mickey_Nunes

Expert Comment

ID: 6330173
Hi Mickey,

My company is using SUN 424 and 425 on Novell NetWare server.  My users are printing to Novell NetWare print queue.  I use the NetWare capture command in system login script as below:
#capture l=2 q=xxxx nt nff nb ti=30
l=2 - Capture map to LPT2
q=xxx - Print queue name in NetWare server
nt - No TAB
nff - No form feed
nb - No banner
ti=30 - time interval = 30 second
It works for all my users using SUN accounting.

I am not sure how the 'NET USE' command works.  But, as long as you have LPT port captured for DOS application, SUN should work properly.  Thus, I believe your problem is on Windows side.

My suggestion will be use the 'Add New Printer' and follow the instruction to add the network printer to LPT3 or LPT4 for test (make printer configuration in SUN change also to LPT3 or LPT4). Make sure the support DOS printing option is selected.  If problem still occur, try to make option change from printer properties.

Hope this help.


Author Comment

ID: 6333438
Excellent, a reply from someone who knows SUN.  The NET USE command is the NT Server 4.0 version of Novell's CAPTURE command.  They can still print in windows when the problem happens in the application(when the DOS capture is lost), via word etc.  Have you encountered any problems like this with the Jet Direct Print Servers.  I will check the printer options but it may be a problem with the jet direct print server.

Expert Comment

ID: 6335321
JetDirect works petty good in my NetWare environment.  DOS capture from login script will not disconnect.  SUN just works fine here.  I really has no idea on NT login script.

Have you tried my suggestion to use 'Add New Printer' wizard to capture LPT3 or LPT4 and use SUN accounting to print to LPT3 or LPT4?

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails


Expert Comment

ID: 6420321
You might also want to make sure that your users are not running a program that "recaptures" the ports.  I have a customer with the same problem, different OS, but anyway it turned out that they were running  a DOS program that recaptured the ports when it started, bascially disconnecting the network login captures.  It was a CAD program, BTW.  So, check to make sure that none of their programs are doing a recapture when run.

Author Comment

ID: 6591440
Thank you for your suggestions everybody but I sorted it when I went on site.  

What we did was to setup an enviromental variable on the NT Server and got the user to use this when printing, instead of printing by capturing printer ports.

thank you all :)
LVL 27

Expert Comment

by:Asta Cu
ID: 7401349

This question is very old.  Please take a moment to revisit this question & reward your points or post additional commentary, as appropriate. If no further action is taken with this question within 7 days, Community Support will be requested to finalize this and unless there is objection or further activity, I will request that question be closed.


**Expert input always appreciated if a different outcome should result and Asker does not finalize**

If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers, please post a request in Community support (with a link to this page) to refund your points. The link to the Community Support area is:

Thank you,
":0) Asta

Accepted Solution

Jgould earned 0 total points
ID: 7406018
user resolved moved to PAQ and points refunded

[What we did was to setup an enviromental variable on the NT Server and got the user to use this when printing, instead of printing by capturing printer ports]

JGould-EE Moderator

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you use a Brother DCP 130C or similar Brother printer, at some point you might encounter the following problem: after you change the ink cartridge, the printer displays an "ink empty" message. Sometimes you just need to follow the instructions…
When I recently replaced my image transfer kit on my office HP color laserjet 5550dn printer, I had a slight problem.  The left bracket that holds the transfer kit got stuck in the upright locked position instead of being at a 45 degree angle facing…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now