+ 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
    Walsall
    Posts
    2,010
    Blog Entries
    1
    Thank Post
    194
    Thanked 48 Times in 42 Posts
    Rep Power
    25

    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
    8,917
    Thank Post
    275
    Thanked 795 Times in 715 Posts
    Rep Power
    188

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

    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,641
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    29

    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
    Walsall
    Posts
    2,010
    Blog Entries
    1
    Thank Post
    194
    Thanked 48 Times in 42 Posts
    Rep Power
    25

    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
    930
    Thank Post
    171
    Thanked 39 Times in 32 Posts
    Rep Power
    23

    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
    4,756
    Thank Post
    85
    Thanked 203 Times in 186 Posts
    Rep Power
    81

    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,641
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    29

    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
  •