CON, and Windows flatly refuses. No hardware error, no missing permission—just a stubborn rejection from an operating system that behaves as if a 1980s serial terminal might still be sitting on your desk. As MakeUseOf recently highlighted in a look at four seemingly baffling Windows behaviors, these quirks aren't random bugs at all; they are living fossils from the CP/M and MS-DOS era that still shape how modern Windows handles files, paths, and storage.Understanding why Windows acts this way isn't just retro-computing trivia. Whether you're troubleshooting a stubborn Git repository clone, writing a quick batch script, or trying to figure out why an ancient installer refuses to die, these thirty- and forty-year-old conventions still trip up everyday power users and seasoned IT administrators alike. Let's crack open the hood and separate the genuine MS-DOS history from the modern Win32 reality.
1. The Folders Windows Refuses to Create: CON, NUL, and Ghost Hardware
Try naming a file or folder CON, PRN, AUX, or NUL in File Explorer, and Windows shuts you down immediately. The same goes for COM1 through COM9 and LPT1 through LPT9. Even slapping a file extension on the end won't fool the operating system: according to Microsoft's file-naming documentation, NUL.txt and NUL.tar.gz are treated as equivalent to NUL itself. In a twist that catches even veteran Windows admins off guard, Microsoft's Win32 rules also reserve superscript digit variants—COM¹, COM², COM³, and LPT¹ through LPT³—because Windows recognizes those 8-bit ISO/IEC 8859-1 characters as digits in device names.
Why a modern OS still fears a 1980s printer
To make sense of this, you have to rewind past Windows 95 all the way to Digital Research's CP/M in the 1970s and early MS-DOS. Before graphical interfaces, operating systems let programs talk to hardware by pretending devices were files:
CONrepresented the console (keyboard input and screen output).PRNrouted output to the system printer (often defaulting toLPT1).AUXpointed to the auxiliary serial port (typicallyCOM1).NULserved as a digital black hole for discarding unwanted output.
Under the hood today, Windows NT maintains those aliases inside its Object Manager namespace so legacy Win32 applications can still open a device like COM1 directly as if it were a file. That backward compatibility comes with a sharp edge for hardware tinkerers: while COM1 through COM9 are predefined in the reserved namespace, higher-numbered serial ports—such as COM56 on a multi-port expansion board—cannot be opened by bare name and must be addressed explicitly through the Win32 device namespace as \\.\COM56.
Section takeaway: Reserved names apply to both files and directories across standard Win32 paths, and adding an extension does not bypass the block. Only specialized device-namespace prefixes bypass standard path parsing.
2. Why Your System Drive Starts at C: (and Why One Missing Backslash Breaks Scripts)
Pop open This PC on almost any Windows machine, and your primary NVMe SSD sits proudly at C:, while A: and B: are nowhere to be seen. Just like reserved device names, drive letters trace a lineage from IBM's mainframe operating systems through CP/M and into MS-DOS. Early personal computers had no internal hard drives; they relied on one or two floppy drives assigned to A: and B:. Even single-floppy PCs often used B: as a virtual second drive, prompting users to swap disks back and forth during file copies. When internal hard disks arrived on the scene, they naturally claimed the next letter in line: C:. Decades later, countless installers and scripts still assume Windows lives there.
Contrary to popular myth, A: and B: are not permanently bricked on modern hardware—you can manually assign either letter to a partition or USB drive in Disk Management. The more insidious DOS hangover isn't the letter itself, but how Windows tracks working directories per drive.
The C:tmp.txt trap in Command Prompt
If you type C:\tmp.txt in Command Prompt, Windows looks straight at the root of drive C:. Omit that backslash—typing C:tmp.txt instead—and Windows treats it as a relative path pointing to tmp.txt inside whatever folder was most recently active as the current directory on drive C:. Because the Windows API tracks a separate current directory for each drive letter, a single missing \ in a script or terminal command can silently read from or overwrite the wrong folder entirely.
Section takeaway: Drive C: is a surviving convention rather than a hardware lock, and A:/B: can be reassigned if needed. Always include the backslash after the colon (C:\) when you mean the root of a drive.
3. The 260-Character Wall: Why Deep Folders Still Break Modern Apps
You've probably seen it happen: a file with a completely normal name refuses to open, copy, or delete simply because it sits at the bottom of a sprawling corporate SharePoint sync or nested Git repository. That culprit is MAX_PATH, the classic Win32 API path-length ceiling of 260 characters.
Crucially, MAX_PATH counts the entire string—drive letter, colon, backslash, every intermediate folder name, the filename, and an invisible terminating null character. Directory creation is even tighter: Microsoft's path documentation notes that when an API creates a directory, the path cannot exceed MAX_PATH minus 12 characters (248), specifically so an 8.3 short filename can still fit inside it. That limitation isn't an NTFS bottleneck; NTFS and Unicode Windows APIs using the \\?\ prefix can handle paths of roughly 32,767 characters.
Turning on Long Paths isn't a magic wand
Starting with Windows 10 version 1607, Microsoft gave users and IT administrators a way to lift the 260-character restriction on many common Win32 file and directory functions—but there's a big catch. Removing MAX_PATH requires two things to be true at once:
- System opt-in: The
LongPathsEnabled(REG_DWORD) value underHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystemmust be set to1(which enterprise admins can also push via Group Policy under Computer Configuration > Administrative Templates > System > Filesystem > Enable Win32 long paths, or via Microsoft Intune). - Application opt-in: The app itself must declare
<ws2:longPathAware>true</ws2:longPathAware>inside its application manifest.
Even then, processes cache the registry setting on first use, meaning a reboot may be required before already-running apps notice the change. More importantly, enabling LongPathsEnabled does not force legacy apps—or even parts of the Windows shell—to cooperate. Microsoft explicitly cautions that the Windows shell user interface and underlying file system APIs have different requirements. In MakeUseOf's own hands-on test with a 261-character path after enabling long paths, PowerShell 5.1 created the deep folder without complaint while File Explorer still refused to play ball.
Section takeaway: MAX_PATH is a Win32 compatibility limit, not an NTFS limit. Opting into long paths helps aware developer tools and scripts, but it won't cure every GUI app or File Explorer dialog.
4. PROGRA~1 and the Hidden World of 8.3 Short Names
Open Command Prompt at C:\ and run dir /x. Sitting neatly beside Program Files, you'll likely spot PROGRA~1. That cryptic alias is an 8.3 short name—at most eight characters for the base name, a dot, and a three-character extension. It's the exact same MS-DOS constraint that gave us three-letter file extensions like .txt and .exe.
When Windows 95 and NTFS broke free of the 8.3 straitjacket, Microsoft kept generating hidden 8.3 aliases alongside long names so older 16-bit and early 32-bit programs could still locate folders like C:\PROGRA~1. Even today, some legacy installers and uninstallers hardcode short paths into registry entries.
Why Microsoft lets you disable 8.3—and why you shouldn't strip them lightly
Whenever short-name creation is enabled on an NTFS volume, the file system has to generate and maintain a second directory entry for every long filename. On servers or developer drives holding hundreds of thousands of small files—such as SQL Server FILESTREAM containers—that extra metadata lookup can hurt file-creation performance.
That's why Microsoft's fsutil 8dot3name utility lets admins query or tune short-name creation per volume or across the entire system via the NtfsDisable8dot3NameCreation registry value:
NtfsDisable8dot3NameCreation Value | Behavior |
|---|---|
0 | Enables 8.3 short-name creation on all volumes |
1 | Disables 8.3 short-name creation on all volumes |
2 | Allows per-volume 8.3 settings |
3 | Disables 8.3 creation on all volumes except the system volume |
Notice the crucial distinction between stopping future 8.3 creation and deleting existing short names. Microsoft explicitly warns that permanently removing existing 8.3 names without updating registry keys that reference them can break applications—including leaving you unable to uninstall software—and urges admins to back up the volume first. Before touching anything, fsutil 8dot3name provides both a scan command and a strip /t test mode designed specifically to hunt down registry keys that would be impacted if short names were removed.
Section takeaway: 8.3 aliases are compatibility scaffolding that carry real metadata overhead at scale, yet stripping existing short names on a live system drive can silently sabotage installed apps and uninstallers.
Three Safe Diagnostic Checks to Run on Your PC
Curious how much DOS-era baggage your own Windows 10 or Windows 11 installation is still carrying? You don't have to change a single setting to look under the hood. Run these three read-only checks from an elevated terminal or Registry Editor:
- See live 8.3 aliases on your system drive: Open Command Prompt and run
dir /x C:\to inspect which root folders still maintain short aliases likePROGRA~1alongside their modern names. - Check your drive's 8.3 creation policy: Run
fsutil 8dot3name query C:(from an elevated Command Prompt or Windows Terminal) to see both the system-wide registry state and whether yourC:volume currently generates short names for newly created files. - Check whether Win32 long paths are enabled: Open Registry Editor and navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem(or runGet-ItemPropertyin PowerShell) to see ifLongPathsEnabledexists and is set to1.
For most desktop users, leaving your system drive's 8.3 settings untouched is the smartest move—there's little upside unless you're managing massive file counts or dedicated build volumes, and breaking an uninstaller isn't worth the micro-optimization. Enabling LongPathsEnabled, by contrast, is a harmless, reversible tweak if you work heavily with Node.js, Git, or Python toolchains that support it—just don't be surprised when File Explorer still reminds you that Windows never quite forgets where it came from.
References
- 4 weird Windows habits that only made sense once I knew their 30-year-old history MakeUseOf · 2026-12-02T21:00:17+00:00
- Naming Files, Paths, and Namespaces - Win32 apps | Microsoft Learn learn.microsoft.com
- pcbstore.com.bd pcbstore.com.bd