
Summary
Try naming a folder CON in File Explorer. Windows refuses and says the device name is invalid, even though you never mentioned a device.
The device is a console from the MS-DOS era, and Windows never stopped honoring the name. It’s one of several habits on your PC that only look random until you know their history, and a few of them still affect how Windows behaves.
A folder name Windows won’t take
CON, PRN, and NUL are reserved for devices from the DOS era
CON isn’t the only name Windows refuses to accept. I also tried PRN, AUX, or NUL instead, and Windows says no again. COM1 to COM9 and LPT1 to LPT9 are off-limits too, according to Microsoft’s file naming rules list. Even adding an extension didn’t get me around it since NUL.txt still counts as NUL.
Those names once referred to hardware. CON was the console, PRN the printer, AUX an auxiliary device, and NUL a place to throw data away. DOS let programs talk to them like files, and Windows carried that behavior forward for compatibility. That’s why Windows still blocks names like CON when you’re just creating an ordinary folder.
The numbered names have an exception, though. COM1 to COM9 are predefined so programs can open them directly but a port like COM56 has to be opened using the special path \.\COM56.
You’d only run into any of this if you try to use one of these names or are working with hardware that uses serial ports.
A system drive that starts at the third letter
A: and B: are still being held for floppy disks
Open This PC, and your main Windows drive starts at C:, with A: and B: nowhere in sight. In CP/M and MS-DOS, those letters were reserved for floppy drives. So when hard drives came along, they took the next available letter, C:.
As the first hard disk became C:, the convention stuck, and plenty of software still expects Windows to be installed there.
DOS left another drive-letter habit that may catch you off guard in Command Prompt. A path like C:tmp.txt
doesn’t point to the root C:. It refers to the current folder associated with that drive.
Add the backslash, as in C:\tmp.txt
and it points to the root instead. One missing character can change where a command looks for a file or saves one. A: and B: stay available. I can still assign those letters to other drives through Disk Management.
A file that won’t open because of the folders above it
Every folder above a file counts against it
Say a file refuses to open and its name looks fine. The problem may be how deeply it’s buried in folders. Windows traditionally limits paths handled by many Win32 applications to 260 characters, counting the drive letter, colon, backslash, folder names, filename, and terminating character.
That leaves very little room if you keep nesting folders. NTFS itself allows much longer paths, so this limitation comes from the Win32 API and how applications handle paths. It isn’t just the file system’s capacity.
Directories get less room. Microsoft says a directory path can’t be so long that an 8.3 name couldn’t be added to it, so directory paths top out at 260 minus 12 characters. It’s an old naming rule that still affects how long modern folder paths can be.
Windows 10 version 1607 added a way to lift the limit, and Microsoft’s path limit page says you opt in. Also, applications must declare their own long-path support. One test with a 261-character path found File Explorer still refusing it with the setting on, while PowerShell 5.1 created the folder.
Short names hiding next to your long folder names
PROGRA1 is a leftover Windows keeps around for old programs
Run dir /x
in Command Prompt at C:, and you may see PROGRA1 show up beside Program Files. These are 8.3 names, limited to eight characters, a dot, and a three-character extension.
DOS needed that format, and Windows kept short aliases around so older programs could still find files and folders by their old names. It’s the same era that gave us three-letter file extensions.
Some older programs still expect Program Files to have short name C:\PROGRA~1. Others hardcode short names when looking for particular files. I didn’t remove those short names though as that is risky and can break software that depends on them.
Microsoft warns it can break apps, uninstallers included, and recommends a backup first. The same command offers a scan and a test mode (/t) to check for potential issues.
There’s a reason Windows lets you disable short-name creation, though. NTFS has to maintain these extra names and perform lookups when creating files, which Microsoft says can affect performance in some situations.
Short-name creation can also be configured separately for individual volumes, so your Windows drive and an external drive may not share the same settings.
Three checks worth running on your own PC
Run dir /x
in C:\ to see which folders have short names, then fsutil 8dot3name query C:
to check whether Windows still creates them on that drive. You can also check LongPathsEnabled in Registry Editor to see whether long-path-aware apps can use long paths on your PC.
Unless you’re dealing with a folder containing a huge number of files or using software that specifically benefits from these settings, there’s little reason to change them. Disabling short names can break older programs, and enabling long paths doesn’t guarantee File Explorer will cooperate.