Command Prompt shell showing filenames in a directory DOS and Windows have no single root directory; a root exists for each storage drive, indicated with a drive letter or through UNC. Directory and file name comparisons are case-insensitive: "test.TXT" would match "Test.txt". In the
Windows API, file I/O functions automatically convert into (except when using the prefix). Paths using standard Windows APIs (dating back to DOS and
Win9x), were limited to 260 characters, or less, as defined by the environment variable . For backwards compatibility with legacy applications this limitation was not removed until Windows 10, build 1607, when it could be expanded to 32,767. Windows NT always supported the 32,767 path length internally but only if using Unicode APIs or forcing UNC paths by the prefix.
PowerShell allows slash-interoperability for backwards-compatibility: PS C:\>Get-Content -Path "C:/path/to/file.txt" Here is some text within a file
Yen/won character error Japanese and Korean versions of Windows often displayed the '
¥' character or the '
₩' character instead of the directory separator. This is because while in ANSI codepages, the character at 0x5C was the backslash, and in Japanese and Korean codepages, 0x5C was the yen and won signs, respectively. Therefore, when the character for a backslash was used, other glyphs appeared.
Universal Naming Convention The Microsoft
Universal Naming Convention (
UNC,
uniform naming convention, or
network path), is a syntax to describe the location of a network resource, such as a shared file, directory, or printer. A UNC path has the general form: Some Windows interfaces 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. Thus, the WebDAV URL of becomes . When viewed remotely, the "SharedFolder" may have a name different from what a program on the server sees when opening "\SharedFolder". Instead, the SharedFolder name consists of an arbitrary name assigned during creation of the share. Since UNCs start with two backslashes, and the backslash is also used for
escape sequences and in
regular expressions, cases of
leaning toothpick syndrome may arise. An escaped string for a regular expression matching a UNC begins with 8 backslashes because the string and regular expression both require escaping. This can be simplified by using
raw strings, such as in C#, in
Python, or {{code|qr{\\\\}|perl}} in
Perl. == See also ==