Home » Ask & Discuss » Physics. » General Physics « Back to Discussion
General Physics
Comments (24)

"CON" and a number of other character strings are in fact reserved names that go back to the days of DOS and cannot be used to name folders or files. Other reserved names are:
- PRN
- AUX
- NUL
- LPT1
- COM1
- Potential drive letter - A: to Z:
- A number of others
If you try to name a folder using one of these reserved names, the name will automatically revert to the default, generally "New Folder". Moreover, if you try to use a reserved name to name a file such as a Notepad or Microsoft Word document you will generally receive an error message
These special system variables are available irrespective of path
You cannot create a folder with these names also:
CON, NUL, COM1, COM2, COM3, LPT1, LPT2, LPT3,COM1 to COM9 and LPT1 to LPT9....,PRN
CON means console, COM1 means serial port 1, LPT1 means parallel port 1
The story about some indian finding that folders cannot be named con is ABSOLUTELY NONSENSE .
The reason why it cannot be named is because DOS keeps con as a keyword , which means console ( or keyboard ) .
So if you want to do something from the keyboard instead of a file , then you use con .
e.g.
copy con a.txt
This command will copy text from the keyboard instead of a file.
The magic about bush hid the facts is a bug in notepad . It is some problem when reading unicode characters . It has been corrected in recent versions of notepad.











