+ Post New Thread
Results 1 to 8 of 8
Windows Thread, Net Use in Technical; Does anyone know of a way to map a drive and setting up a different label for instance: \Server1\sharedarea map ...
  1. #1
    wesleyw's Avatar
    Join Date
    Dec 2005
    Location
    Kingswinford
    Posts
    2,207
    Thank Post
    225
    Thanked 50 Times in 44 Posts
    Blog Entries
    1
    Rep Power
    30

    Net Use

    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

  2. #2

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,618
    Thank Post
    648
    Thanked 1,619 Times in 1,449 Posts
    Rep Power
    421

  3. #3
    mrforgetful's Avatar
    Join Date
    May 2006
    Posts
    1,637
    Thank Post
    7
    Thanked 15 Times in 15 Posts
    Rep Power
    22

    Re: Net Use

    Why not just change what the folder is shared as, it's that which is displayed no?

  4. #4
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    34

    Re: Net Use

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

    Code:
    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.

  5. #5
    wesleyw's Avatar
    Join Date
    Dec 2005
    Location
    Kingswinford
    Posts
    2,207
    Thank Post
    225
    Thanked 50 Times in 44 Posts
    Blog Entries
    1
    Rep Power
    30

    Re: Net Use

    We only use Win XP pro so hopefully that will work I'll let you know!

    Thanks Guys!

    Wes

  6. #6
    OverWorked's Avatar
    Join Date
    Jul 2005
    Location
    N. Yorks
    Posts
    1,014
    Thank Post
    198
    Thanked 42 Times in 34 Posts
    Rep Power
    30

    Re: Net Use

    Quote Originally Posted by ajbritton

    Code:
    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.

  7. #7
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,009
    Thank Post
    120
    Thanked 282 Times in 260 Posts
    Rep Power
    108

    Re: Net Use

    Quote Originally Posted by OverWorked
    Quote Originally Posted by ajbritton

    Code:
    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........

  8. #8
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    34

    Re: Net Use

    I use it in a logon script and it works fine. My logon scripts are assigned via GP (not user account property).

SHARE:
+ Post New Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •