Jump to content

Recommended Posts

Posted

Does anyone know of a way to map a drive and setting up a different label for instance:

 

\\Server1\sharedarea

 

map to j drive

 

name displayed in my computer/explorer Staff Shared Area?

 

Is this possible or am I hoping for too much here?

 

Wes

Posted

It is possible to do it from VB Script as follows...

 

dim oNet, oShell

set oNet = CreateObject("Wscript.Network")
set oShell = CreateObject("Shell.Application")

oNet.MapNetworkDrive "J:", "\\server\share"
oShell.NameSpace("J:").Self.Name = "Shared Work Area"

set oShell = nothing
set oNet = nothing

 

EDIT: This appears not to work on Win2K Pro.

  • 1 month later...
Posted

 

oShell.NameSpace("J:").Self.Name = "Shared Work Area"

 

 

I was searching for something else when I came across this. I've given my mapped drives user-friendly names now. Great! Another little niggle sorted.

Posted

 

oShell.NameSpace("J:").Self.Name = "Shared Work Area"

 

 

I was searching for something else when I came across this. I've given my mapped drives user-friendly names now. Great! Another little niggle sorted.

 

I tried that last year and ran into permission problems when running in the context of a logon script. I shall have to have another go though........

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...