"Con" folder and mystery

  • Thread starter Thread starter abcd
  • Start date Start date
A

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
 
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
 
From: "abcd" <[email protected]>

| 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.
 
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.
 
|>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 :)
 
[[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/...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 said:
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 said:
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
 
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 said:
[[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/...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 said:
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
 
|>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/...Windows/XP/all/reskit/en-us/prkc_fil_rbrx.asp
|>>
|>> --
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top