Bharat Banate's Work Profile

View Bharat Banate's profile on LinkedIn

Thursday, August 30, 2007

Windows: Can you create these folders?

Hey guys out there,
can you create folder named CON on your system?
Well, have a try.... best of luck!

well, i don't think you can....

I don't know the exact reason, but you simply cannot create any folder with name CON.
Nor you can rename any existing folder to this name.
There are several such names, which you cannot use!
The list includes:
LPT1 to LPT9,
prn, nul,AUX,
COM1 to COM9
...and many other unknowns...

Even if you change the case of the letters, you simply cannot create them!

8 comments:

Anonymous said...

BTW, this is NOT a bug...
its a part of security.

code-squeryl said...

Hi Guys...

Here It goes my first entry....

I can create folder named con & all those specified here... can anybody guesses how..???

& I know the exact reason why you were not able to create folders.. any guesses...???????????????????

Anonymous said...

Hi sachu,
even I can create all the folders listed in the post.
and i also know the exact reason!

Thats why i said in the first comment, "its a part of security"...

o/w you can imagine how havocing it will be. right?

Anonymous said...

in fact the folder names are self-explainatory.
a simple thought and one can easily find the reason.

nik said...

Dudes i really dont know abt this??
can anyone explain???

Anonymous said...

just wait n watch!
solution is coming soon...

Anonymous said...

But hey theres a trick!!! try this!!
goto the command line then type this:

cd\
mkdir \\.\c:\con

( you can use any other drive letter as well! i used c: for demo)

See how this works???
now try to delete it in explorer!! ha ha ha!!!

The reason behind this is down to UNC naming conventions..
by adding the \\ in the statement it makes windows ignore the old DOS command to reserve this folder name..

Its a simple as this..
rmdir \\.\c:\con

Anonymous said...

For more info, check this link:

http://support.microsoft.com/kb/315226/