Solved

Printing from Dos in XP to a Network Printer

Posted on 2006-07-13
4
232 Views
Last Modified: 2010-03-18
Hi,

I have TCP/IP Printers with network card built into them on my network. I have XP Pro boxes running a DOS program that only prints to LPT ports.

Now I did setup mappings using NET USE, BUT they don't stay connected. its like the disconnect if you don't use them and I need them to stay connected.
Then the biggest problem on top of it is the 3 Laptops the go to sleep and disconnect all the drives including the wireless connection.
When I bring the laptops out of sleep mode and wait a minute or so then drop to dos and type in net use my printers show up disconnected.

Anyone know what I can do or if I'm doing something wrong?
Or maybe software that would take care of this issue?

0
Comment
Question by:ITRick
[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
4 Comments
 
LVL 8

Assisted Solution

by:caddlady
caddlady earned 250 total points
ID: 17104936
Are you using the      /persistent:yes   switch with net use?  I would change the power settings on the laptop so they dont power down the hard drives, network adapters, etc. and use the persistent switch.  You can also create a batch file that can be ran which will automatically map the drives and printers, just dont forget to delete the mappings in the batch file, then re-create them.

0
 

Author Comment

by:ITRick
ID: 17105054
Yes I use the presistent:yes switch. I need the laptops to power down to save on battery, but I will check if I can not let it disconnect the network adapters.

I have a batch file running at login using Windows Scheduled Task feature.

Why do I need to delete the mappings and re-create them? and where do I use this? inside the batch file I created?

Thanks,
Rick
0
 
LVL 43

Accepted Solution

by:
Steve Knight earned 250 total points
ID: 17108924
I'd add the net use command in a batch file which runs the DOS program itself, i.e.

net use lpt1 \\server\share
mydosprog.exe
net use lpt1 /delete
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17108937
I would also suggest you set the power settings on the laptops so that they don't got to sleep at all when on mains power -- most will do that - look in the power properties in control panel.

Steve
0

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

A common practice in small networks is making file sharing easy which works extremely well when intra-network security is not an issue. In essence, everyone, that is "Everyone", is given access to all of the shared files - often the entire C: drive …
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

707 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