Windows – What does the following notation mean: \\?\c:\ mean

command linewindows 7wmic

I recall hearing someone mention something about de-referencing a path but de-referencing wasn't explained and I don't know what it is.

Best Answer

It's an extended length path. See MSDN: Naming Files, Paths, and Namespaces

In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 characters. [...]

The Windows API has many functions that also have Unicode versions to permit an extended-length path for a maximum total path length of 32,767 characters. [...] To specify an extended-length path, use the "\\?\" prefix. For example, "\\?\D:\very long path".

Basically, \\?\ tells the Windows API to pass the path directly to the file system without further manipulations. In addition to extending the available length, it disables the automatic conversion of / to \ and also allows you to use the reserved file names . and ... See the article linked above for details.

Related Question