Path (computing) - Uniform Naming Convention

The Microsoft Windows UNC, short for Universal Naming Convention or Uniform Naming Convention, specifies a common syntax to describe the location of a network resource, such as a shared file, directory, or printer. The UNC syntax for Windows systems has the generic form:

\\ComputerName\SharedFolder\Resource

Microsoft often refers to this as a "network path".

Some Microsoft Windows interfaces also allow or require UNC syntax for WebDAV share access, rather than a URL. The UNC syntax is extended with optional components to denote use of SSL and TCP/IP port number, a WebDAV URL of http://HostName/SharedFolder/Resource becomes

\\HostName\SharedFolder\Resource

Note: The UNC syntax sometimes appears written with slashes. Microsoft Windows treats slashes and back slashes in this context as equivalent. However, many programs will accept only backward slashes, and some will only accept double backslashes (i.e. \\\\ComputerName\\SharedFolder), especially in quoted string-constants, due to the standard use of backslash as an escape character.

When viewed remotely, the "SharedFolder" may have a name different to that a program on the server sees when opening "\SharedFolder". Instead, the SharedFolder name consists of an arbitrary name assigned to the folder when defining its "sharing".

Some Microsoft Windows interfaces also accept the "Long UNC":

\\?\UNC\ComputerName\SharedFolder\Resource

Microsoft Windows uses the following types of paths:

  • local file system (LFS), such as C:\File
  • uniform naming convention (UNC), such as \\Server\Volume\File
  • long UNC or UNCW, such as \\?\C:\File or \\?\UNC\Server\Volume\File

In versions of Windows prior to Windows XP, only the APIs that accept "Long UNC" could accept more than 260 characters.

The shell in Windows XP and Windows Vista, explorer.exe, allows path names up to 248 characters long.

Read more about this topic:  Path (computing)

Famous quotes containing the words uniform, naming and/or convention:

    I’ve always been impressed by the different paths babies take in their physical development on the way to walking. It’s rare to see a behavior that starts out with such wide natural variation, yet becomes so uniform after only a few months.
    Lawrence Kutner (20th century)

    Husband,
    who am I to reject the naming of foods
    in a time of famine?
    Anne Sexton (1928–1974)

    No good poetry is ever written in a manner twenty years old, for to write in such a manner shows conclusively that the writer thinks from books, convention and cliché, not from real life.
    Ezra Pound (1885–1972)