|
-
Aug 25th, 2000, 04:30 PM
#1
Thread Starter
Addicted Member
How do you get the drive name.
example= \\Host1\whatever
-
Aug 25th, 2000, 05:11 PM
#2
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|