Results 1 to 2 of 2

Thread: Identifying the path of network drives

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    3

    Exclamation

    I need to be able to identify from the full path of a network drive from it's local letter.
    E.G I know G: is a network drive, but I need to know that which network server it actually refers to e.g
    \\Server1\Network1
    How can I find this out in code?

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    In VBScript (or VB if you have the vbscript.dll) this is a simple procedure.

    Dim fso, d
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set d = fso.GetAbsolutePathName("G:")

    The Variable d should return the network path you are looking for.

Posting Permissions

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



Click Here to Expand Forum to Full Width