Solved

Printing from Dos in XP to a Network Printer

Posted on 2006-07-13
4
228 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
  • 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Downtime reduced, data recovered by utilizing an Experts Exchange Business Account Challenge The United States Marine Corps employs more than 200,000 active-duty Marines with operations in four continents, all requiring complex networking system…
Resolve DNS query failed errors for Exchange
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

708 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