Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automated reconnect to novell
Message
From
21/04/2002 00:47:26
 
 
To
19/04/2002 15:58:42
General information
Forum:
Windows
Category:
Services
Miscellaneous
Thread ID:
00647049
Message ID:
00647302
Views:
12
>I have a situation where I haul a notebook home without shutting it down. I just close it up and let it suspend processing. This works great going home, all I have to do is change my default printer.
>
>At home I print to an IP address which is back at the office. This is the address ov my office firewall which routes packets on port 9100 to my internal tcp/ip printer. I have no server at home.
>
>When I return to the office, my printers address is 10.1.1.10, and I have both a Win2K server and two Novell servers.
>
>Is there any way short of rebooting that I can for instance run a program or series of programs that will reset my default printer and reconnect to all the servers?

You could cobble up a bit of VBScript or JScript that would instantiate the WSH's Wscript.Network object, and then call the appropriate methods to unmap network drives, remap them, forcing a reattach, and set your default printer as well. See my sig block for some useful links on WSH.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform