blackmodder Posted April 17, 2007 Share Posted April 17, 2007 (edited) Why do cannot rename a folder with "con"??? Example:Try to make a new folder and rename con.It won't let you.That's because is provided like the windows console,and how we better know duplicatte names are'nt allowed in Windows. I've heared that it's may be possible to make one but after you're moddify an xp script... but I still trying to find it and post for future interests.And I've almost forgotten.... What extension does have the New Folder??? *.newfolder or *.folder???? or else. can anyone tell??? Edited April 17, 2007 by blackmodder Link to comment Share on other sites More sharing options...
jcarle Posted April 17, 2007 Share Posted April 17, 2007 CON is a reserved system name.You cannot name folders using reserved system names which also includes LPT1 (2, 3... etc) and COM1 (2, 3... etc). Link to comment Share on other sites More sharing options...
blackmodder Posted April 17, 2007 Author Share Posted April 17, 2007 (edited) CON is a reserved system name.You cannot name folders using reserved system names which also includes LPT1 (2, 3... etc) and COM1 (2, 3... etc).Yes it's right, I've forgoten that .... but on the second question: What extension does have the New Folder??? *.newfolder or *.folder???? or else. can anyone tell??? Edited April 17, 2007 by blackmodder Link to comment Share on other sites More sharing options...
RJARRRPCGP Posted April 17, 2007 Share Posted April 17, 2007 (edited) CON is a reserved system name.You cannot name folders using reserved system names which also includes LPT1 (2, 3... etc) and COM1 (2, 3... etc).Even for a Windows NT-based OS, including Windows Vista, that probably is true. Microsoft is known to keep legacy code for a long time in their operating systems! Edited April 17, 2007 by RJARRRPCGP Link to comment Share on other sites More sharing options...
nmX.Memnoch Posted April 17, 2007 Share Posted April 17, 2007 Actually that was a new addition with WinXP if I'm not mistaken. It may have been there on Win2k, but I'm fairly certain it wasn't with WinNT 4.0.As for folder extensions...they don't get extensions. Sure, you can name one something like "My Folder.dir", but folders/directories don't get true extensions like files do. Link to comment Share on other sites More sharing options...
blackmodder Posted April 17, 2007 Author Share Posted April 17, 2007 Actually that was a new addition with WinXP if I'm not mistaken. It may have been there on Win2k, but I'm fairly certain it wasn't with WinNT 4.0.As for folder extensions...they don't get extensions. Sure, you can name one something like "My Folder.dir", but folders/directories don't get true extensions like files do.HMMMMMM interesting.... and what ... .dir work : Link to comment Share on other sites More sharing options...
[deXter] Posted April 21, 2007 Share Posted April 21, 2007 CON is a reserved system name.You cannot name folders using reserved system names which also includes LPT1 (2, 3... etc) and COM1 (2, 3... etc).Technically, you can have a folder/file named CON, NUL etc. The problem comes when windows tries to access the folder, it'll give priority to CON the device and not CON the folder. Therefore, the folder becomes virtually inaccessible.One can create such a folder in a Windows drive from another OS like *nix, or in a non standard way that won't confuse Windows/DOS, like this:(type this in the command prompt)MD \\.\C:\conThis will create a folder called con in C:\. You can create a file in the same way. The reason why this method works is that by specifying the dot operator, the OS knows that the command is dealing with folders, thus it doesn't get confused with con the device. Link to comment Share on other sites More sharing options...
sofolo Posted April 21, 2007 Share Posted April 21, 2007 I think Microsoft have sensetive codes with these names , the reason that wondows refuses this names is still unknown for me ,you can name your folder con or any other names mentioned above by the way that Dexester used or simply make new folder> rename it by "con" at the same time hold the ALT bottun and press 255 . you will be allowed to have folder by this name. Link to comment Share on other sites More sharing options...
[deXter] Posted April 21, 2007 Share Posted April 21, 2007 I think Microsoft have sensetive codes with these names , the reason that wondows refuses this names is still unknown for me ,you can name your folder con or any other names mentioned above by the way that Dexester used or simply make new folder> rename it by "con" at the same time hold the ALT bottun and press 255 . you will be allowed to have folder by this name.They're not sensitive codes. CON, PRN, NUL, LPT etc are all valid system devices. CON stands for console, LPT is line printer, NUL is null, and so on.The reason they're reserved is because you can still perform operations with them.If you have a parallel port printer attached to your computer, typing ECHO HELLO WORLD > LPT1 in cmd or DOS will print "HELLO WORLD" on your printer. Now try typing ECHO HELLO WORLD > CON . It'll redirect it to the console (screen). Similarly, ECHO HELLO WORLD > NUL will not do anything as it'll nullify the output. Do you have a dialup modem attached to COM1? Type ECHO ATDT911 > COM1 to dial 911 Link to comment Share on other sites More sharing options...
jcarle Posted April 21, 2007 Share Posted April 21, 2007 Also, if those devices were not valid, you would not even be able to do some of the simpler things in batch files such as COPY file.ext C:\dir > NUL to silence the output. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now