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:

    The maples
    Stood uniform in buckets, and the steam
    Of sap and snow rolled off the sugarhouse.
    Robert Frost (1874–1963)

    See, see where Christ’s blood streams in the firmament!
    One drop would save my soul—half a drop! ah, my Christ!—
    Ah, rend not my heart for naming of my Christ!—
    Yet will I call on him!—O, spare me, Lucifer!—
    Where is it now? ‘T is gone; and see where God
    Stretcheth out his arm, and bends his ireful brows!—
    Mountains and hills, come, come and fall on me,
    And hide me from the heavy wrath of God!
    Christopher Marlowe (1564–1593)

    By convention there is color, by convention sweetness, by
    convention bitterness, but in reality there are atoms and space.
    Democritus (c. 460–400 B.C.)