KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: How to use UNC paths in 4D?
PRODUCT: 4D | VERSION: 12 | PLATFORM: Mac & Win
Published On: December 9, 2011

Uniform Naming Convention (UNC) paths offer a convenient way to access network shared folders on Windows without the need to add "mapped drives".

Here is a network share named "sharedFolder" on the server "serverName" using a UNC path:

\\serverName\sharedFolder\someFile.txt


If you mapped drive letter O to this share then it would be:

O:\someFile.txt


https://en.wikipedia.org/wiki/Path_(computing)#Uniform_Naming_Convention

The good news is no special steps are needed to use UNC paths in 4D. UNC paths are supported transparently by Windows and, therefore, all of the 4D commands that deal with paths (e.g. the System Documents theme) support them transparently as well.

Keep in mind that one advantage to using mapped drives instead of UNC paths is the ability to log in as a different user to the share. UNC paths default to using the currently logged in user.