Monday, July 11, 2011

Its Amazing!!! We can't create Files & folders with name CON !!!

I discovered that nobody can create a FOLDER/FILE anywhere on the Computer which can be named as "CON".
This is something pretty Cool...and Unbelievable!!!


Try it now, it won't create " CON " folder, Not only the "con", also the following words comes under this category...
  • AUX
  • PRN
  • CON
  • LPT1, LPT2, LPT3,.....,LPT9
  • COM1, COM2, COM3,.....,com9
  • nul
 We can't directly create FILES/FOLDERS with these names  from windows , because, these are all reserved words.
But we can create files and folders in the name of reserved words!!! By using the COMMAND prompt...it is explained as below

Eg:
c:\> mkdir \\.\e:\con (for creating directory)

c:\> dir \\.\e:\con     (for displaying contents of directory)

c:\> rmdir \\.\e:\con (for removing directory)
 where 'e' is the directory name
It’s applicable for all the reserved words in windows and DOS. Check it out...


PS: The files and folders, which are created in the above method can't be deleted from the windows explorer..., windows will says "cannot deleted con:  Cannot find specified file"

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...