Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do "\\.\", "\??\", "\\?\", "\\" mean?

What I know is

\\.\ 

It is used when we open a device's symbolic link in user mode

\??\ 

It is used when we open a device in kernel mode

\\?\  

long file name

\\    

UNC path.

But I want to know more detail.
Could you explain more certainly about these prefixs.

like image 286
Benjamin Avatar asked Aug 23 '10 02:08

Benjamin


People also ask

What does \\ mean in path?

. means it's the current directory. / is normally used in paths to show the structure of files and folders. \\ is referring to \ (used double because \ is a special character) which is same as / but used differently depending on the OS.

Is \\ used in Windows?

See UNC, \\, path and forward slash. Three Symbols Separate Names The Unix-based Mac uses the forward slash, while Windows uses the backslash.

What does double slash mean in file path?

If, as part of a file transfer, you specify a file located on a Connect:Direct® node by using a file path that starts with a double forward slash (//), the file is treated as a data set.

Why is used in file path?

File paths specify the location of individual files. They are used to give files access to one another and they are of two types : Absolute and Relative. Relative file paths on the hand points to the location of files in the root folder of an individual web project with reference to the current working file.


1 Answers

http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx#paths

Apparently, \?? is a short form for \Global?? according to this article:

In NT naming convention, \Global?? can also be called \?? to shorten the access.

like image 73
William Niu Avatar answered Sep 30 '22 18:09

William Niu