Results 1 to 2 of 2

Thread: Get Drive name

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    247
    How do you get the drive name.

    example= \\Host1\whatever

  2. #2
    Addicted Member
    Join Date
    Aug 2000
    Location
    Nottingham, England
    Posts
    197
    You could use the App.Path command:
    This gives the full position of the current application within the file structure, as a string.

    Test it using: debug.print app.path

    Just use the left command to get the bit you want:

    driveletter = left(app.path,1)

    Hope this is what you want.

    Cheers,

    Steve.
    Sent by: Steve Barker
    E-mail: [email protected]

    P.S. I KNOW 1 is not a prime!
    See this thread: http://forums.vb-world.net/showthread.php?threadid=26485

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