What Why can’t I create a
folder in Windows with the following names CON, PRN, AUX, NUL, LPT1, LPT2, COM1,
COM2....???
Why You aren't allowed to create a folder with names that are the same as the ones that have been used for various devices on a PC since DOS era.
In DOS, "CON" refers
to "Console", "PRN" refers to "Printer" and LPT1, LPT2, COM1, COM2 refers to
different communication ports.
How There happens to be a
workaround for this. To create a folder named "CON" in
Windows,
open Command
Prompt and type the following: mkdir
\\.\D:\CON (This will create a
folder named CON in the D drive)
You may be able to
view the folder using Windows Explorer, but you will not be able delete it or
Copy/Paste files into it.
But yes, you can
create new files in it.
To delete this
folder, type the following code in command prompt. rmdir
\\.\D:\CON