Network path

valeryk2000

Registered User.
Local time
Today, 01:40
Joined
Apr 7, 2009
Messages
157
Access 2003/2007
Application.CurrentProject.Path - returns mapped drive path.
Question: how can we get full network path, smthng like \\server\sharedrive\etc ?
Thanks
 
Sounds like you want the mapped drive letter turned back into a UNC.

I did a quick search for VBA UNC and came up with this:

VBA to Return the UNC(Universal Naming Convention) Path of a Mapped Network Drive
http://www.excelfox.com/forum/f13/v...ing-convention-path-mapped-network-drive-134/

That example did not include proper housekeeping. Should drop the objects by setting them to nothing... something like...

Code:
Set objNtWork = Nothing
Set objDrives = Nothing

once they are done being used.
 
Thanks. I forgot to which library "WScript... " belongs?
 
You won't believe it - but this function works ok without special referencing a library - windows library is referenced by default?
Thank you Mike!
 

Users who are viewing this thread

Back
Top Bottom