| Windows Vista, XP, 2000, 98, etc... Questions, comments, news about Windows Vista, XP, 2000, ME and all the rest! |  |
11-30-2005, 11:37 AM
|
#1 | | Member
Join Date: Nov 2005
Posts: 140
Rep Power: 3  | Reserved filenames in Microsoft Windows Nobody can create a folder anywhere named as "con".
Not only "con" but you can not create folder named as "aux" and "nul".
This is something pretty cool...
Try it out yourself........
I have no answer for this, I dont why this is so... If anyone have an answer please post it ,so that i can trick some of my friends who claims themselves are best Windows users :lol: |
| |
11-30-2005, 12:13 PM
|
#2 | | Distinguished Member
Join Date: Jul 2005
Posts: 2,208
Rep Power: 5  | This is because CON, AUX, an NUL are all aliases for hardware devices.
For the same reason, you cannot create a folder named "COM1". |
| |
11-30-2005, 12:45 PM
|
#3 | | Member
Join Date: Nov 2005
Posts: 132
Rep Power: 3  | What do you mean by hardware device aliases???
All these days, I thought they had to do something with the Kernel variables.
Does this apply to any other operating system too? I have used much of the others. |
| |
11-30-2005, 01:04 PM
|
#4 | | Member
Join Date: Nov 2005
Posts: 140
Rep Power: 3  | I found a workaround for this in this thread http://kerneltrap.org/node/5772
"mkdir \\.\C:\con"
Type that at command prompt(without quotes) and go to C:\ and check out.
Earlier I was not able to delete such a folder which I created using the above method.
To delete such a folder, type :
"rename \\.\c:\con xcon"
and
Then you can delete the "xcon" folder manually , in a method of your choice. |
| |
12-10-2005, 10:35 AM
|
#5 | | Member
Join Date: Dec 2005 Location: Oregon, USA
Posts: 114
Rep Power: 3  | WEIRD! I did not know that about windows! I guess we learn new stuff everyday, huh? |
| |
12-10-2005, 01:08 PM
|
#6 | | Senior Member
Join Date: Dec 2005
Posts: 172
Rep Power: 3  | I've never heard about that before. Why exactly doesn't it let you create those types of folders? Since you CAN create that type of folder in a command prompt, does it affect anything? |
| |
12-10-2005, 08:17 PM
|
#7 | | Distinguished Member
Join Date: Jul 2005
Posts: 2,208
Rep Power: 5  | Those names are reserved by the operating system because they are existing names for hardware devices. It's a legacy behavior from old DOS.
They cannot be created (normally) even at the command line. Code: C:\>md CON
The directory name is invalid.
C:\> |
| |
12-11-2005, 04:59 PM
|
#8 | | Senior Member
Join Date: Oct 2005
Posts: 161
Rep Power: 3  | I didn't know this.
I'm glad my name isn't Con and I wanted to make some folders for myself. What if there was a user called Con? |
| |
12-11-2005, 11:36 PM
|
#9 | | Distinguished Member
Join Date: Jul 2005
Posts: 2,208
Rep Power: 5  | My name is Will, but I don't have any folders named "Will." :lol: |
| | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | |
Similar Threads | | Thread | Thread Starter | Forum | Replies | Last Post | | Top Ten New Features in Windows Vista | Cedric | Windows Vista, XP, 2000, 98, etc... | 0 | 01-10-2007 04:29 PM | | Makling your computer Windows Vista Capable!! | Lyte | Windows Vista, XP, 2000, 98, etc... | 1 | 12-25-2006 09:38 AM | | Windows XP Errors & Fixes ( most common errors ) | asterix | Windows Vista, XP, 2000, 98, etc... | 4 | 08-21-2006 09:09 AM | | "Why Windows Vista Won't Suck" | Lyte | News, events, alerts and more! | 1 | 03-12-2006 02:35 PM | | Ten Reasons to Buy Windows Vista | Lyte | News, events, alerts and more! | 6 | 03-01-2006 06:29 PM | Flex Development Our partners: All times are GMT -5. The time now is 10:17 PM. Powered by vBulletin Version 3.6.7 Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 Design by vBSkinworks
|