Pradeep's Blog

Google

Friday, October 14, 2005

I Bet you cannot create a folder named 'CON'

Try creating a folder named con. It's not possible in windows. I was at first told about this as a glitch in windows by my friend. But i later found out that this was not a glitch, but just the way windows was intented to work.
The technical reason behind this is that, there are certain names that are reserved for device and these names cannot be used as the name of a file (remember that directories are also considered as files in windows). Some of these reserved names include: CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Microsoft also recommends to not use these names as file names too (ie with extension like, LPT9.txt). Mystery Solved!!

0 Comments:

Post a Comment

<< Home