{ Technology, Internet, Software, Tips and more ... }

27 September 2007

File/Folder name "con" in Windows

1. Goto any folder
2. Rename the folder as "con".
3. You can't rename it
Why??

Device names such as COMx, CON or LPTx are reserved words, and they can't be used as folder or file names.
[More Details: Microsoft]

Invalid Name List in Windows
> CON
> LPT1, LPT2, LPT3, LPT4 ... LPT9
> PRN
> NUL
> COM1, COM2, COM3 .... COM9
> AUX


WIkipedia article on DOS Device file also mentions why the OS willl not allow a user to name a file / folder using certain reserved words and characters.

No comments: