There is no XP Home forum here, so I figured this forum is the closest match.
Situation:
XP home machine is part of a peer to peer network. It needs to print from a dos program to a printer shared on another machine.
I have been using: net use lpt1 \\Server\HP /persistent:yes
Unfortunately every few days the printer won't work anymore, and I have to issue a net use /delete lpt1, and reissue the net use lpt1 \\Server\HP /persistent:yes command. Then it works again..
I wanted to run a batch file upon every login to issue the following commands:
net use /delete lpt1
net use lpt1 \\Server\HP
cls
First I just made a printer.cmd file with those commands and created a scheduled task for it to run upon each login, and I entered a user and password for an administrative user. That worked a couple times, but sometimes it wouldn't run. Very inconsistent.
So I tried the method of putting it in a folder shared as netlogon. That worked once and then didn't work upon subsequent reboots.
How can I have this printer mapped upon every login the right way?
For now I just put the printer.cmd on the desktop and told the user to double click it when the printer stops working.
It's an older hp laserjet.
Thanks for any advice.
NO DISASSEMBLE!
Situation:
XP home machine is part of a peer to peer network. It needs to print from a dos program to a printer shared on another machine.
I have been using: net use lpt1 \\Server\HP /persistent:yes
Unfortunately every few days the printer won't work anymore, and I have to issue a net use /delete lpt1, and reissue the net use lpt1 \\Server\HP /persistent:yes command. Then it works again..
I wanted to run a batch file upon every login to issue the following commands:
net use /delete lpt1
net use lpt1 \\Server\HP
cls
First I just made a printer.cmd file with those commands and created a scheduled task for it to run upon each login, and I entered a user and password for an administrative user. That worked a couple times, but sometimes it wouldn't run. Very inconsistent.
So I tried the method of putting it in a folder shared as netlogon. That worked once and then didn't work upon subsequent reboots.
How can I have this printer mapped upon every login the right way?
For now I just put the printer.cmd on the desktop and told the user to double click it when the printer stops working.
It's an older hp laserjet.
Thanks for any advice.
NO DISASSEMBLE!