Improve company productivity with a Business Account.Sign Up

x
?
Solved

Dos printing in TS and Server 2003

Posted on 2010-11-19
12
Medium Priority
?
528 Views
Last Modified: 2012-05-10
I have an application which is an old dos program running on server 2003. I had this working previously but had to rebuild the machine because of malware. I had redirected the printer over three years ago and can't remember the syntax. The remote machine has an HP4050 connected directly on lpt1. The HP share name is printer3.  In config.nt files=200 buffers =30,2. The server name is alexserver. The printer port it's trying to connect thru in TS is TS007 and the correct driver resides on the server. The name of the remote machine is SERVICE2.  I thought the command would be net use lpt1 \\alexserver\service2\printer3 /persistent:yes. When I use this I get error code 67 as you cannot map to the local port. If I try TS007 instead of LPT1 I get error 66
0
Comment
Question by:kaman40
  • 5
  • 4
  • 2
  • +1
12 Comments
 
LVL 39

Expert Comment

by:Hypercat (Deb)
ID: 34175417
You cannot do a net use command for LPT1 unless you have admin rights. Try using LPT2 - net use lpt2 \\alexserver\service2\printer3 - instead. Then be sure that your DOS program is pointing to LPT2 for printing rather than LPT1.
0
 
LVL 26

Expert Comment

by:Lionel MM
ID: 34179537
The problem is this
net use lpt1 \\alexserver\service2\printer3

The correct command is
net use lpt1 \\alexserver\\printer3
0
 
LVL 26

Expert Comment

by:Lionel MM
ID: 34179538
sorry
net use lpt1 \\alexserver\printer3 only one \ after the server name
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 

Author Comment

by:kaman40
ID: 34205001
none of the three worked. hypercat was more correct as you cannot use lpt1. However that is the correct syntax and i still cannot get printback using 2003 server
0
 
LVL 14

Expert Comment

by:canali
ID: 34222047
What error get running net use lpt1 \\alexserver\printer3 in the correct way?
0
 

Author Comment

by:kaman40
ID: 34259485
net use lpt1 \\alexserver\printer3 when i do it it comes back as

The network resource type is not correct
0
 
LVL 39

Expert Comment

by:Hypercat (Deb)
ID: 34259670
Actually, now that I'm looking at this again, what you would need to do is to share the printer and then map the drive to the name of the shared printer.   So, with the user connected to the terminal server, he/she would need to share the printer first and then map LTP2 to that printer share name.  I believe (at least in the little test I just ran) the share name will stick when the user logs off and back on again later.
0
 
LVL 39

Expert Comment

by:Hypercat (Deb)
ID: 34259677
Clarification - that is, create the share name for the printer on the terminal server itself, not on the workstation.
0
 

Author Comment

by:kaman40
ID: 34261062
so if I uso if I understand correctly. I create a share name on the server thru TS for the correct printer printer3, which I did. Then I net use lpt2 \\alexserver\service2\printer3 /persistent:yes. If thats what your saying I did it and it comes back as network name not found. Same thing if I remove the name alexserver
0
 
LVL 39

Expert Comment

by:Hypercat (Deb)
ID: 34261436
I want to be absolutely clear, because there are a number of ways you might be thinking about this, so here are the steps I followed:

1.  From the workstation, establish your connection to the terminal server and log on.
2.  Open the Printers folder and you should see the redirected printer listed there.  It should say something like "HP4050 (from Service2) in session 1." Test printing directly to that printer to make sure that it prints correctly on the workstation printer.
3.  Once you've established that the printer works, then right-click on it and share it out with whatever name you want to use - just "HP4050" would be fine.
4.  Then your net use statement would be: net use LTP2 \\alexserver\HP4050 /persistent:yes


0
 

Author Comment

by:kaman40
ID: 34264037
you are correct, I got it just before i saw your post. You hit it on the head. Thank you,
Steve
0
 
LVL 39

Accepted Solution

by:
Hypercat (Deb) earned 2000 total points
ID: 34267117
Glad to help. Sometimes the simplest things turn out to be complicated, particularly when you have to remember how to deal with 15-year-old software!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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

I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
Watch the video to learn how one can deal with PST file corruption issue with an outstanding Kernel for Outlook PST Repair Tool easily. Using this tool, non-technical users can swiftly perform the repair process to restore their essential data witho…
Through the video, you can check the migration process of Outlook PST file to PDF. Kernel for Outlook to PDF tool can convert Outlook emails with all attributes like Subject, To, From, Cc, Bcc and other folders such as Inbox, Outbox, Sent Items, Jun…

579 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