I had a similar issue. You can write the BAT file or if the DOS program can
print to LPT2:, then you can net use LPT2: at the office and on your laptop.
When you are at home LPT1 will be available.
"kastnna" wrote:
> Our office uses an antiquated DOS program that requires network
> printing. I setup "lpt1: \\SV\HPLaserJ" via "net use" and everything
> runs fine normally. (SV is the computer name the printer is connected
> to, of course).
>
> However, I have a laptop that I take home every evening and connect to
> another home network there. In the morning when I reattach my laptop to
> the docking station at work, net use shows the status of lpt1: as
> "unavailable" and of course, I cannot print from DOS. To solve this
> problem I have to delete the lpt1: connection each morning and run net
> use again.
>
> All of our machines run XP Pro SP2 and I can access the rest of the
> office's network/shared folders without any issues. I can even print to
> the printer in question as long as it is through windows.
>
> Can I stop DOS networking from doing this? If not, would it be easiest
> to create a simple .bat program that runs the delete and reinstall
> commands for net use and execute it from my desktop every morning or is
> there a better way?
>
> Thanks in advance.
>
>
|