MapNetworkDrive, can I map without a share?
- From: Marten <absolute88@xxxxxxxxxxx>
- Date: Thu, 26 Apr 2007 09:29:55 -0500
I'm slowly increasing my scripting knowledge, but I need help with a
section of the login script I'm working on.
How do I map a network drive when there is no share name?
From the local command prompt I can use a NET command to map:
net use z:
\\wpg-svr-ish1\cacheroot\tor-svr-ish1\tor-svr-dc1\tor-data\h
But MapNetworkDrive doesn't seem to like the absense of an actual
share. Is there a way to get around this?
Comments welcome,
Marten
Background:
To increase inter-office file accessibility, we have incorporated
iShared devices from Packeteer. They are WAFS with cacheing
capabilities. I am now working on a unified login script for all
offices that can tell that a user is not logging in from their base
office and will map drives to the current office. But some drives,
such as the user folder, need to map back to their base office.
net use z:
\\wpg-svr-ish1\cacheroot\tor-svr-ish1\tor-svr-dc1\tor-data\h
this format is:
\\ the local iShared \ its cacheing folder \ the desired remote
office's iShared \ a server in the remote office \ the desired path on
the remote server....
\\tor-svr-dc1\tor-data\h is the valid path bypassing the iShared, but
it is slower access through the VPN.
In this sample, the "tor-" can be replaced with "van-" for another
office that wpg- can access. Van- can access Wpg- and Tor-, etc.
.
- Follow-Ups:
- Prev by Date: Re: Can't read array values
- Next by Date: Re: How to call vbscript multiple times
- Previous by thread: Can't read array values
- Next by thread: Re: MapNetworkDrive, can I map without a share?
- Index(es):
Relevant Pages
|
Loading