PDA

View Full Version : "Con" folder and mystery


abcd
October 25th 05, 12:08 AM
In Windows, create a folder and give the name "con"



Why can't create with the name "Con" or rename the existing one to "con"



Any mystery here



-Vinod

Dave Patrick
October 25th 05, 12:35 AM
These are reserved names by the operating system.

CON, AUX, COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, PRN, NUL

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"abcd" wrote:
> In Windows, create a folder and give the name "con"
>
>
>
> Why can't create with the name "Con" or rename the existing one to "con"
>
>
>
> Any mystery here
>
>
>
> -Vinod
>
>

David H. Lipman
October 25th 05, 12:35 AM
From: "abcd" >

| In Windows, create a folder and give the name "con"
|
| Why can't create with the name "Con" or rename the existing one to "con"
|
| Any mystery here
|
| -Vinod
|

Its a reserved name such as CON:, LPT1:, LPT2:, COM1:, COM2:, etc..

CON refers to the CONsole.
LPT1 and LPT2 refer to parallel printer ports.
COM1 and COM2 refer to COMmunication serial ports.

--
Dave
http://www.claymania.com/removal-trojan-adware.html
http://www.ik-cs.com/got-a-virus.htm

David Candy
October 25th 05, 01:18 AM
Because it is the file name of the keyboard (read from) and screen (save to).


Type in Start Run

cmd /k copy %systemroot%\win.ini con

which copies the file win.ini to the screen.
--
--------------------------------------------------------------------------------------------------
Read David defending the concept of violence.
http://margokingston.typepad.com/harry_version_2/2005/10/entering_the_ga.html#more
=================================================
"abcd" > wrote in message ...
> In Windows, create a folder and give the name "con"
>
>
>
> Why can't create with the name "Con" or rename the existing one to "con"
>
>
>
> Any mystery here
>
>
>
> -Vinod
>
>

Trax
October 25th 05, 01:52 AM
"abcd" > wrote:

|>In Windows, create a folder and give the name "con"
|>
|>
|>
|>Why can't create with the name "Con" or rename the existing one to "con"

Cause you were able to under NT, then it couldn't be deleted :)


--
http://www.nasa.gov/missions/solarsystem/cev.html

Wesley Vogel
October 25th 05, 02:29 AM
[[Several special file names are reserved by the system and cannot be used
for files or folders:
CON, AUX, COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, PRN, NUL]]
File Names in Windows XP
http://www.microsoft.com/resources/documentation/Windows/XP/all/reskit/en-us/Default.asp?url=/resources/documentation/Windows/XP/all/reskit/en-us/prkc_fil_rbrx.asp

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In ,
Dave Patrick > hunted and pecked:
> These are reserved names by the operating system.
>
> CON, AUX, COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, PRN, NUL
>
> --
>
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "abcd" wrote:
>> In Windows, create a folder and give the name "con"
>>
>>
>>
>> Why can't create with the name "Con" or rename the existing one to "con"
>>
>>
>>
>> Any mystery here
>>
>>
>>
>> -Vinod

Dave Patrick
October 25th 05, 02:35 AM
Yep, exactly why I answered!

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Wesley Vogel" wrote:
> [[Several special file names are reserved by the system and cannot be used
> for files or folders:
> CON, AUX, COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, PRN, NUL]]
> File Names in Windows XP
> http://www.microsoft.com/resources/documentation/Windows/XP/all/reskit/en-us/Default.asp?url=/resources/documentation/Windows/XP/all/reskit/en-us/prkc_fil_rbrx.asp
>
> --
> Hope this helps. Let us know.
>
> Wes
> MS-MVP Windows Shell/User
>
> In ,
> Dave Patrick > hunted and pecked:
>> These are reserved names by the operating system.
>>
>> CON, AUX, COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, PRN, NUL
>>
>> --
>>
>> Regards,
>>
>> Dave Patrick ....Please no email replies - reply in newsgroup.
>> Microsoft Certified Professional
>> Microsoft MVP [Windows]
>> http://www.microsoft.com/protect

Trax
October 25th 05, 03:14 AM
"Dave Patrick" > wrote:

|>Yep, exactly why I answered!

And in the exact same order as well :) - what are the odds.

|>Dave Patrick ....Please no email replies - reply in newsgroup.
|>Microsoft Certified Professional
|>Microsoft MVP [Windows]
|>http://www.microsoft.com/protect
|>
|>"Wesley Vogel" wrote:
|>> [[Several special file names are reserved by the system and cannot be used
|>> for files or folders:
|>> CON, AUX, COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, PRN, NUL]]
|>> File Names in Windows XP
|>> http://www.microsoft.com/resources/documentation/Windows/XP/all/reskit/en-us/Default.asp?url=/resources/documentation/Windows/XP/all/reskit/en-us/prkc_fil_rbrx.asp
|>>
|>> --


--
http://www.nasa.gov/missions/solarsystem/cev.html

Google