abartar 0 Report post Posted August 25, 2006 I tried in both Windows XP Home and Professional. If you try to make a folder named "CON" Windows XP renames it back to what it was. So creating a new folder with the name "CON" just renames it to "New Folder".The bug seems like a variable that got treated as a string or vice-versa. Trying to create the folder from a cmd prompt failed with an error "The directory name is invalid.".This also works when you try to create a file called "CON", or "CON.". ".CON" shows up the way it should.Somewhere I found the reason that CON stands for CONsole which is device name but why does Microsoft have to be so restrictive??? Share this post Link to post Share on other sites
sparx 0 Report post Posted August 25, 2006 Device names such as COMx, CON or LPTx are reserved words, and they can't be used as folder or file names. There's also a patch released under Win 9x that plugged asecurity hole that allowed a malicious user to gain control of a remote machine because of the way Win9x parsed path names. More details here The Wikipedia Article #1 also describes certain filename characteristics. 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. Share this post Link to post Share on other sites
Markymark2 0 Report post Posted August 25, 2006 (edited) ahha !!! Ive seen this before many many moons ago...Like a lot of Winblows "features" this comes back to DOS and the way the file system works..I bumped into this problem years ago when messing around with networked printers..I had to set up 5 new printers and I tried to name a folder "lpt1" for the name of the first printer and then i was going to put the drivers in that folder and share it out to all users..but I had the same problem..it wouldnt make the folder at all...I did some research and found out its because of DOS..also making folders with names such as anything starting in "com" such as "com1" give the same result..Its DOS reserving these names because it uses them itself to address these ports.But hey theres a trick!!! try this!!-goto the command line then type thiscd\mkdir \\.\c:\conSee how this works???now try to delete it!! in explorer---hahah!!!The reason this is possible 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..Years and years later MS still finds funny quirks in DOS for us to play with ))Ok I will be nice and tell you how to get rid of it...Its a simple as this..rmdir \\.\c:\conHave fun!!Edit:Damm someone beat me by 30 secs to get the reply to this post ;(( Edited August 25, 2006 by Mark420 (see edit history) Share this post Link to post Share on other sites
Pharoah 0 Report post Posted August 25, 2006 It's wierd that it's still like that in XP! 9x I can understand because that's just a little shell, but XP was supposed to write all the 16 bit code out, and you think that would take all this wierd device-as-file stuff with it. Cool tip about the //, i've never heard of that before. Somewhere on the web I found a list of secret DOS commands once. Very cool! Share this post Link to post Share on other sites
yordan 10 Report post Posted August 28, 2006 By the way, "CON" is for "CONSOLE", which is... the keyboard.An old way of creating files was the following : in a COMMAND window type "copy con myfile.txt"Then type any textand finish with CTRL-Z.You will see the message "one file copied".then "type myfile.txt", you will see your text.To summary, "con" is the keyboard (or the console), so you can directly write down a file by copying CON to a file.The same way, you can type directly to the printer by issuing "copy con prn:", everything you type on the keyboard will be redirected to the printer, you re-invented the typing machine. Don't forget to finisth with CTRL-Z. Share this post Link to post Share on other sites
BitShift 0 Report post Posted September 9, 2006 Its just another classic example of why Windows is failing. They refuse to update and improve their kernel and remove old DOS functions that are outdated and no longer needed.They have code in their kernel that hasn't changed since Windows 95, its pathetic. They could put in so many optimizations but they refuse to. Something about "compatibility issues" with older systems but its all just trash. They are blown away from the fact many businesses and schools are trying to convert to Linux, they just will not ever understand.I havn't asked my friend at Microsoft about the kernel Vista will be running off of but I'm sure its still the same story. Share this post Link to post Share on other sites
xboxrulz1405241485 0 Report post Posted September 9, 2006 yes, Microsoft actually said that they leave tonnes of holes unfixed because of compatibility issues. Most of these compatibility issues are caused by stuff they wrote in 1995. Seriously, they should take that old code out since no one would use it. At least update it if they don't pull it out.xboxrulz Share this post Link to post Share on other sites
yordan 10 Report post Posted September 10, 2006 OK, folks, don't go so fast.I think some old features have to stay. Every languate will have special device names, or reserved names. So, you will always face the problem not being able to name things exactly as you want.I am currently working under linux, and I get angry because my test program cannt be named "test", because test is a reserved word.And remember the old Unix/linux thing. Remember the "dd" command, this program is named "Copy and Convert". And wy cannot the command be "cc" ? Because the "cc" word was already reserved.So, Microsoft stays sticky to the old device conventions, and I agree with them. it's sligthly disturbing that you cannot name your object "con", but we can accept that. Simply remember that the polite French language also asks you not to use that word.... Share this post Link to post Share on other sites
BitShift 0 Report post Posted September 10, 2006 You have a good point but Linux at the very least is moving forward and replacing most older code with newer code. Of course every kernel is going to have some parts that you just have to leave alone for a while to keep compatibility up but the way Microsoft is managing the Windows kernel is just ridiculous.MSDOS creates so many security holes in Windows despite how hard administrators try to block it, because once you get into a DOS prompt the computer you are on has been exploited and is at your mercy. Why is this possible? It is because Windows refuses to update it or replace it with something else because it won't be compatible with older computers. I just don't understand. People are moving on with technology these days and we have to stop worrying about compatibility issues on old systems. They need to move on. Share this post Link to post Share on other sites
Grafitti 0 Report post Posted October 24, 2006 But Vista, built on a different kernel (ripped from linux, or so i've heard) will incorporate a different code architechture, which doesn't use DOS, for one. So theoretically, it could be a much more secure OS, the only problem is with the huge amount of third-party software, which requires that old kernel to run. If the big businesses insist on Microsoft leaving Vista open. then we might not be much better off, and i don't know what i'd prefer. Having to get all my programs over again, or working with a buggy system that I can still patch to my liking. Share this post Link to post Share on other sites
tansqrx 0 Report post Posted October 25, 2006 Wow I have to admit that I am impressed. Never heard of this one before. Share this post Link to post Share on other sites
black shadow 0 Report post Posted November 25, 2006 You can't create a hole lot of folders in windows cuz theyr names already are used in dos by some programs that if you would have 2 of them there would be a conflict in the software.Why would you name a folder con anyway ? Share this post Link to post Share on other sites
iGuest 3 Report post Posted April 21, 2008 http://dadecoders.blogspot.de/ Can You Create A Folder Name "con" <a href="http://forums.xisto.com/no_longer_exists/ is looking Funny!So try to create these folders (or files)CON, .CON , CON. ,COM1 ,COM2 , COM3 ,COM4 ,LPT1 ,LPT2 ,LPT3 ,PRN ,NUL ,AUXOnce Check it Out.It is impossible. Interesting !You aren't allowed to create folders with names that are the same as the ones that have been used for various devices on a PC since the DOS era."CON" refers to "console" in DOS."PRN" refers to "printer,""LPT1," "LPT2," etc., and "COM1," "COM2," etc. Refers to the communication ports.The bug has been tried and tested in both Windows XP Home and Professional. If you try to make a folder named "CON" (case insensitive), Windows XP renames it back to what it was. So creating a new folder with the name "CON" just renames it to "New Folder".The bug seems like a variable that got treated as a string or vice-versa. Trying to create the folder from a cmd prompt failed with an error "The directory name is invalid.".This also works when you try to create a file called "CON", or "CON.". ".CON" shows up the way it should.Methods To Create Above Folders:Method 1:STEP1: goto command promptSTEP2: type in prompt e:> ((mkdir .e:con))STEP3: verify by typing ((dir .e:con))STEP4: delete the file or folder ((rmdir .e:con)) Note::Not necessary for to go only E:,you canm create in any Drive.(This method is bulky and confusion. So You can Use)Method 2:Create FolderWhile name Type CON and then stroke the key ALT+0160 on numeric key pad.(CON -> ALT+0160)Then you can create CON folder and other described folders.It means that when you type a folder name with simpleALT+0160 you can create empty folder.There is no name for a folder.Here we are using "CON " (CON with space).This is the tricky logic here.</a> -reply by dadecoder Share this post Link to post Share on other sites
iGuest 3 Report post Posted June 7, 2008 how to create the new folder of "con" name Can You Create A Folder Name "con" Please sir tell me how to create the new folder of "con" name please sir give me answer soon. -reply by aariz Share this post Link to post Share on other sites
iGuest 3 Report post Posted June 15, 2008 Replying to abartar Go to command prompt, use the followingCommand to create folder names with reserved words:MKDIR .pathCON(did I say you need to replace the word 'path' with actual path whereYou want the folder; but again to delete the folder, you will have toUse the similar command. RMDIR .PathCON) -reply by anoop chandran Share this post Link to post Share on other sites