4 Legacy Windows Behaviors Traced to DOS and How to Inspect Them
Technology news
Explore legacy Windows constraints rooted in MS-DOS, including reserved folder names like CON, the C: drive convention, the 260-character Win32 path limit, and 8.3 short names, alongside safe command-line inspection methods.
Reserved Device Names and Legacy Constraints in Windows
When attempting to create a new folder named CON in File Explorer, Windows blocks the operation with an error stating that the device name is invalid, even though no hardware was explicitly referenced. According to a report by makeuseof.com, this behavior originates from the MS-DOS era, where specific identifiers were reserved for hardware devices. In DOS, CON represented the console, PRN designated the printer, AUX signified an auxiliary device, and NUL acted as a bit-bucket for discarding data. Under Microsoft's file naming rules, additional names such as COM1 through COM9 and LPT1 through LPT9 are similarly off-limits. Appending an extension does not bypass the rule, meaning NUL.txt is still blocked as NUL. However, an exception applies to higher-numbered ports; while COM1 to COM9 can be opened directly, ports like COM56 must be accessed via the special path \\.\COM56.
4 Legacy Behaviors and How to Inspect Your PC
Beyond reserved names, three other core conventions carried forward from earlier systems continue to shape how Windows functions:
- The C: Drive Default: In CP/M and MS-DOS, drive letters
A:andB:were allocated to floppy disks. When hard drives were introduced, they automatically receivedC:. Many legacy and modern applications still expect Windows on this letter, thoughA:andB:remain assignable via Disk Management. In Command Prompt, omitting a backslash (e.g.,C:tmp.txt) targets the current directory on that drive rather than the drive root (C:\tmp.txt). - The 260-Character Win32 Path Limit: Many Win32 applications limit paths to 260 characters, counting the drive letter, colon, backslash, directory names, filename, and terminating null character. Directory paths are constrained to 260 minus 12 characters to accommodate an 8.3 name, even though the underlying NTFS filesystem supports much longer paths.
- 8.3 Short Names: Windows creates short aliases (such as
PROGRA~1for Program Files) to maintain compatibility with legacy software that cannot read long filenames.
Users can inspect these configurations on their systems using three specific commands:
- List short names in a directory: Run
dir /x C:\in Command Prompt. - Check if 8.3 name creation is active: Run
fsutil 8dot3name query C:. - Inspect long-path support: Check the
LongPathsEnabledentry in the Registry Editor.
Applicability and Filesystem Performance Considerations
Understanding these mechanisms is relevant when troubleshooting legacy enterprise software, managing serial ports, or handling deeply nested directories. Furthermore, generating and maintaining 8.3 aliases imposes an overhead on NTFS during directory queries and file creation. According to Microsoft, this additional lookup overhead can impact filesystem performance in scenarios involving folders with very high file counts. Administrators can selectively disable 8.3 name creation on specific volumes, meaning an internal operating system volume and an external storage drive can be configured with different creation policies.
Limitations and Cautions for System Modification
While Windows 10 version 1607 introduced an opt-in mechanism to remove the 260-character maximum path limitation, applications must independently declare long-path support. Empirical testing showed that even with long paths enabled, File Explorer still refused a 261-character path, whereas PowerShell 5.1 successfully created the directory. Regarding short names, Microsoft explicitly warns that disabling or stripping existing 8.3 aliases can break software, including application uninstallers. Microsoft recommends performing a full backup before altering these settings and utilizing the test mode (/t) to detect potential conflicts. Unless an environment specifically involves massive file counts or requires tailored compatibility, modifying these defaults is generally discouraged.
Source: makeuseof.com (https://www.makeuseof.com/weird-windows-habits-that-only-made-sense-once-i-knew-their-history/)