CON because those three letters already have a job. They identify the console—a device destination inherited from DOS—not an ordinary place to store files. Microsoft still reserves that name, along with several others, under Windows file-naming conventions. It is backward compatibility with a very long memory.The history explains the restriction, but not every warning attached to it is justified. In particular, unusual naming tricks should not be confused with a guaranteed Windows crash.
Why a filename once meant “send this to the screen”
Microsoft’s Raymond Chen explains the original design in The Old New Thing. DOS 1.0 had no subdirectories and used the familiar eight-character filename plus three-character extension convention. Applications could nevertheless address devices as though they were files.
Consider an assembler asking where to write its listing:
- Supply an ordinary name, and the output becomes a disk file.
- Supply
PRN, and the output goes to the printer. - Supply
NUL, and the output is discarded. - Supply
CON, and the output goes to the screen.
The application did not need separate printing or display logic for that choice. DOS interpreted the special destination. Chen’s example also explains why extensions did not cancel the behavior: an assembler might automatically append .LST, so PRN.LST still needed to reach the printer.
The “45-year-old” description fits the IBM PC timeline. According to the Computer History Museum, PC-DOS 1.0 shipped with the IBM PC in August 1981. DOS 2.0 followed in March 1983, adding hierarchical subdirectories and hard-disk support.
Why reserve the names inside those new directories too? Compatibility. Moving into a subdirectory could not suddenly make an application’s device destinations stop working. Chen also points to batch-file redirection such as >NUL as a reason these conventions survived.
The short version: these were useful device aliases before they became surprising folder-name restrictions.
Which names Windows actually reserves
Microsoft’s documented list applies to both files and directories:
| Group | Reserved names |
|---|---|
| Basic aliases | CON, PRN, AUX, NUL |
| Serial-port aliases | COM1 through COM9 |
| Parallel-port aliases | LPT1 through LPT9 |
| Superscript variants | COM¹, COM², COM³, LPT¹, LPT², LPT³ |
Adding an extension does not provide a dependable escape: Microsoft explicitly treats NUL.txt and NUL.tar.gz as equivalent to NUL. Changing capitalization is not a solution under ordinary case-insensitive Windows naming conventions either.
Precision matters here. Bare COM and LPT are not in that documented reserved-name list. Neither are COM0 and LPT0; their absence does not establish how every application or configured device will behave, but they should not be presented as universally reserved on this evidence.
Windows 11 adds an important developer distinction
There is a difference between a naming rule and how a particular API processes a path.
Microsoft’s.NET documentation says that, before Windows 11, Path.GetFullPath(String) interpreted paths beginning with legacy device names specially. Its examples include converting CON.TXT into \\.\CON. The documentation says that behavior no longer applies with Windows 11 and advises specifying an explicit device path when device access is intended.
That is a scoped API behavior change—not a general announcement that CON.txt is now a portable filename.
For developers, the practical lesson is to test the actual operation, runtime, and Windows version involved. A path-normalization result alone is not proof that every subsequent file operation will treat the name identically. That is an engineering implication of Microsoft’s documented distinction, rather than a claim of firsthand testing.
Nor has modern Windows abandoned device-oriented file APIs. Microsoft documents using CreateFile with CONIN$ and CONOUT$ to open console input and output buffers, including when standard input or output has been redirected. Device access and modern application frameworks are not mutually exclusive.
What about the bypass—and the crash warnings?
Microsoft documents \\?\ as a prefix that disables normal string parsing for supported file-I/O APIs. It also cautions that namespace examples do not necessarily work in Explorer and that not every API supports the prefix. That establishes different path-handling behavior, not universal application compatibility.
It does not establish that accessing a specially created CON directory will inevitably freeze or crash Windows. The responsible warning is narrower: do not assume that a name accepted through one path-handling mechanism will work through another.
For everyday use, choose a descriptive alternative such as Console Notes or CON_archive rather than trying to defeat the restriction. For software that generates filenames, treat Windows naming compatibility as a validation requirement.
The enduring lesson is not that three letters can topple a modern PC. It is that a filename can carry meaning beyond the disk—and Windows still honors some very old meanings.
References
- Windows won't let you name a folder "CON" because of this 45-year-old quirk How-To Geek · 2026-11-09T17:30:15+00:00
- What's the deal with those reserved filenames like NUL and CON? - The Old New Thing devblogs.microsoft.com
- Continuing the story of early DOS development | Microsoft Open Source Blog opensource.microsoft.com