Get Network Computer Name

TimTDP

Registered User.
Local time
Tomorrow, 01:45
Joined
Oct 24, 2008
Messages
213
I have code that returns the url of a file as follows:
"S:\Documents\Database.accdb"

"S" is a mapped drive

I want to use the computer's name rather than the mapped drive, i.e:
"\\ComputerName\Documents\Database.accdb"

How do I return the name of the computer?

Many thanks
 
That will give me my computer's name

I need the name of the network computer that a file resides on.
My computers name is "Frank" and I have a mapped drive "S" to computer "Joe"

I have vba code that allows my to navigate files like Windows File Explorer

If I point to a file on Joe's computer I want to store it as "\\Joe\Documents\FileName
 

Users who are viewing this thread

Back
Top Bottom