Universal Naming Convention: Difference between revisions

From Helpful
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 5: Line 5:
Universal Naming Convention is a Microsoft(/IBM) standard of referring to remote network share paths, introduced as something Explorer could do around WinNT/Win95.
Universal Naming Convention is a Microsoft(/IBM) standard of referring to remote network share paths, introduced as something Explorer could do around WinNT/Win95.


It amounts to:
It amounts to something like:
  \\<server>\<sharepoint>\<path>
  \\<server>\<sharepoint>\<path>


Where server can be  
Where server can these days be  
* IPv4 address
* IPv4 address
* server name
* server name
* IPv6 address
* IPv6 address  
* (and historically a few other things{{verify}})




Line 18: Line 19:


https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#unc-paths
https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#unc-paths




Line 23: Line 26:


* GUID volume name
* GUID volume name




\\.\
\\.\
: prefix will access the Win32 device namespace instead of the Win32 file namespace, which is how you can get some things ''beyond'' a standard file API.
: prefix will access the Win32 ''device'' namespace instead of the Win32 ''file'' namespace
 
:: which is how you can get some things ''beyond'' a standard file API.
: also used for \\.\COM56
: also used for \\.\COM56
:: COM1..COM9 happen to work only because the filesystem API actually FORBIDS files be called that (so that it can kick you over to the device namespace?{{verify}})
:: COM1..COM9 happen to work only because the filesystem API actually FORBIDS files be called that (so that it can kick you over to the device namespace?{{verify}})
Line 35: Line 40:
\\?\
\\?\
: tells windows to ''disable'' string parsing and send the string right through the filesystem.
: tells windows to ''disable'' string parsing and send the string right through the filesystem.
:: as almost a side effect, this also bypasses MAX_PATH lengths, but this is a reason for some yses.
:: as (almost) a side effect, this also bypasses MAX_PATH lengths. ...but ''that'' is the sole reason for some ''other'' uses.
 




Line 43: Line 49:


https://stackoverflow.com/questions/21194530/what-does-mean-when-prepended-to-a-file-path
https://stackoverflow.com/questions/21194530/what-does-mean-when-prepended-to-a-file-path




-->
-->

Latest revision as of 14:09, 29 April 2024