File/Folder name 'error'? - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 10-27-2005, 02:40 PM   #1 (permalink)
Junior Techie
 
Join Date: Jan 2005
Posts: 44
Default File/Folder name 'error'?

Greetings everything,

I passed by something weird today, I'm running windows XP (professional edition) and I tried naming a folder "con" but the file name didn't change to "con", same thing happened when I tried naming anything "con" so I was wondering if anyone can help me know WHY nothing can't be named "con" ?

Thanks, in advance. ^_^
__________________

inflames is offline  
Old 10-27-2005, 02:44 PM   #2 (permalink)
S e c u r e d
 
Join Date: Feb 2005
Location: Somewhere Sunny
Posts: 3,760
Default

This is a known issue with microsoft.
__________________

__________________
brady is offline  
Old 10-27-2005, 02:50 PM   #3 (permalink)
S e c u r e d
 
Join Date: Feb 2005
Location: Somewhere Sunny
Posts: 3,760
Default

Re: file 'con.model' exists when it doesn't
Author: edsonw Posts: 3,049 Registered: 18/06/98
Aug 6, 2004 5:53 AM (reply 3 of 3)


The following file names in Windows are "reserved" because they represent devices:
con, con.* -> the console
prn, prn.* -> the default printer, as a character device
aux, aux.* -> the default serial terminal, as a character device
lpt1, lpt2, lpt3, lpt4, lpt5, lpt6, lpt7, lpt8, lpt9 -> the parallel ports, as character devices
lpt1.*, lpt2.*, lpt3.*, lpt4.*, lpt5.*, lpt6.*, lpt7.*, lpt8.*, lpt9.*
com1, com2, com3, com4, com5, com6, com7, com8, com9 -> the serial ports, as character devices
com1.*, com2.*, com3.*, com4.*, com5.*, com6.*, com7.*, com8.*, com9.*
nul, nul.* -> the NUL or "waste bit bucket" or "black hole for bits" or "/dev/null" device

Such files are considered to "exist" in all directories, so if you have a filename like "c:\temp\con", you're talking about the CON device, not about a normal disk file called "con". They're not listed using the "dir" command, or using APIs.

This is an inheritance from good old DOS days. (In Unix such files are placed in the /dev directory...)

You can have a normal file named "conX", but the file "con.X" is considered as the console.
__________________
brady is offline  
Old 10-27-2005, 03:07 PM   #4 (permalink)
Junior Techie
 
Join Date: Jan 2005
Posts: 44
Default

Cool !

thanks alot for the info ^_^
inflames is offline  
Old 10-27-2005, 03:39 PM   #5 (permalink)
Chillin Techie
 
Join Date: Nov 2004
Location: USA
Posts: 11,861
Default Re: File/Folder name 'error'?

Quote:
Originally posted by inflames
Greetings everything,

I passed by something weird today, I'm running windows XP (professional edition) and I tried naming a folder "con" but the file name didn't change to "con", same thing happened when I tried naming anything "con" so I was wondering if anyone can help me know WHY nothing can't be named "con" ?

Thanks, in advance. ^_^
why would you want to name something con?
__________________
The Ultimate Hard Drive Utility PowerMax 4.23. (It now has the ability to clean a Boot Sector virus on the quick erase option.)
The best browser Netscape 8
Have you accidently delete something? Look here (trial. the better one) and here(free)
EricB is offline  
Old 11-02-2005, 03:36 AM   #6 (permalink)
Junior Techie
 
Join Date: Jan 2005
Posts: 44
Default

Quote:
why would you want to name something con?
I didn't really want to name it CON exactly, but I pressed enter by mistake when I wrote 'con' and it caught my attention, the file name was actually "consolidated statements' :P
__________________

inflames is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 01:00 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.