Someone discovered that nobody can create a folder anywhere named as "con"
I tried it in a couple of directories it seems to be true!
FarrukhW:
Also folder with "prn" name. It was discovered by Farrukh
MehreenJ:
The following reserved device names cannot be used as the name of afolder.
CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8,COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9.
FarrukhW:
actually these are reserved dos devices names.
FarrukhW:
Well, there is a method for creating such named folders :)
FaisalF:
Farrukh you found the method of creating "con" folder in desktop. What is the script?
Farrukh is supposed to be making scripts. This was a joke if most of you didn't get it :PMuddassirA:
I think this should at least give an error of reseved name. The thing about it is that it doesn't show any error message like the one that is shown when you put in invalid character in the name.
spoken like a true software developer!!!AliA:
i dont want to create such named folders
The most practical answer from the most unexpected source!FarrukhW:
Try this at your command prompt:
mkdir \\.\c:\con
Or
mkdir \\.\c:\com1
You can change the path to whatever location
FarrukhW:
Plus..
Once these are created, you can't remove these in normal windows folder deletion method. You have to use
RD \\.\c:\con
ZulfiqarM:
Yeah it should say something like
"
is a reserved folder name that has been carried over because of the perpetual presence of legacy dos code within the current NT kernel. Please specify another filename"
Hmm... that's one typical aNiaz session at our workplace! When people get going, it's hard to stop. Like I say "Opinions are like assholes! Everyone has one! And they all stink!"
# posted by masquerader @ 11:55 ::