Hi @Pete Royall ,
to get the UNC path you don't need any code.
Open the Computer Management console on the computer with the access db and click on Shared Folders
-> Shares
There you should see the shared folders of the computer (share name and location).
Assuming the file test.txt
is stored in C:\Junk
the UNC path of the file is the following:
\\<computername>\junk\test.txt
Just replace the <computername>
with the name of your computer with the file.
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten
I only wish I'd found Andreas Baumgarten's answer about three hours before I did. I would only add that if the file test.txt is stored on any drive other than the C: drive (the E: drive, for example), you have to add the name of the relevant drive after the name of the computer, so the UNC path of the file would be:
\<computername>\e\junk\test.txt
Be aware, however, that in most well-administered organisations drive mappings do not vary, as they are forced at every login, thus no need to worry about UNC paths.
That's good to know. However, I needed to find out the UNC paths of files on my personal computer.
Sign in to comment