Cannot create a folder with name "con"

  • Thread starter Thread starter Aditya Sinha
  • Start date Start date
A

Aditya Sinha

Hello All,

Can anyone please help me in creating a folder named "con" on my system.
Upon naming the new folder as "con" it just reverts back to new folder.

Aditya Sinha
 
Aditya said:
Can anyone please help me in creating a folder named "con" on my system.
Upon naming the new folder as "con" it just reverts back to new folder.

"con" is a reserved word (for console). You can not create files or folder
with this name.

Jan
 
con is just one of several such names. Also, from memory you cannot
create names such as prn aux lpt1 etc. It can be a problem as they
are valid names in different operating systems sucha s Unix

Michael
www.cnwrecovery.com
 
CON is short for CONsole and consists of the keyboard (input) and the
display (output).

Reserved Names (reserved device names)

[[Do not use the following reserved device names for the name of a file:
CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9,
LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Also avoid these
names followed by an extension, for example, NUL.tx7.

Windows NT: CLOCK$ is also a reserved device name. ]]
from...
Naming a File
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp


--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Thanks.. but please explain how is it working through this method posted on
http://mjsabby.com/2005/10/windows-xp-con-folderfile-bug.php

We can create the folder do this by following method
STEP1: goto command prompt
STEP2: type in prompt e:\> "mkdir \\.\e:\con"
STEP3: verify by typing "dir \\.\e:\con"
STEP4: delete the file or folder "rmdir \\.\e:\con"

replace e with any drive of ur choice, and its there.

Aditya Sinha
Wesley Vogel said:
CON is short for CONsole and consists of the keyboard (input) and the
display (output).

Reserved Names (reserved device names)

[[Do not use the following reserved device names for the name of a file:
CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9,
LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Also avoid these
names followed by an extension, for example, NUL.tx7.

Windows NT: CLOCK$ is also a reserved device name. ]]
from...
Naming a File
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp


--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Aditya Sinha said:
Hello All,

Can anyone please help me in creating a folder named "con" on my system.
Upon naming the new folder as "con" it just reverts back to new folder.

Aditya Sinha
 
Aditya said:
Can anyone please help me in creating a folder named "con" on my
system. Upon naming the new folder as "con" it just reverts back
to new folder.

Shenan said:
Multi-post?! Please - if you feel your questionn is relevant to
more than one newsgroup - cross-post in the future.

Google.
30 seconds.

http://mjsabby.com/2005/10/windows-xp-con-folderfile-bug.php

Wesley said:
CON is short for CONsole and consists of the keyboard (input) and
the display (output).

Reserved Names (reserved device names)

[[Do not use the following reserved device names for the name of a
file: CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6,
COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8,
and LPT9. Also avoid these names followed by an extension, for
example, NUL.tx7.
Windows NT: CLOCK$ is also a reserved device name. ]]
from...
Naming a File
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp

Aditya said:
Thanks.. but please explain how is it working through this method
posted on
http://mjsabby.com/2005/10/windows-xp-con-folderfile-bug.php
We can create the folder do this by following method
STEP1: goto command prompt
STEP2: type in prompt e:\> "mkdir \\.\e:\con"
STEP3: verify by typing "dir \\.\e:\con"
STEP4: delete the file or folder "rmdir \\.\e:\con"

replace e with any drive of ur choice, and its there.


You should continue reading that page..

"While it is true that there are ways to create a folder/fole with a
reserved device name, it will never work properly and may be difficult to
delete."
 
I did not say that you couldn't create a file or folder with a reserved
name. I posted that you are not supposed to use reserved device names for
the name of a file or folder.

Here are the *easy* instructions for you to get rid of any files or folders
that have reserved names...

How to Remove Files with Reserved Names in Windows
http://support.microsoft.com/default.aspx?scid=kb;EN-US;120716

How to Remove Files with Reserved Names in Windows XP
http://support.microsoft.com/kb/315226

Cause 5: The file name includes a reserved name in the Win32 name space
http://support.microsoft.com/kb/320081/en-us#XSLTH3186121122120121120120
from...
You cannot delete a file or a folder on an NTFS file system volume
http://support.microsoft.com/kb/320081

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Aditya Sinha said:
Thanks.. but please explain how is it working through this method posted
on http://mjsabby.com/2005/10/windows-xp-con-folderfile-bug.php

We can create the folder do this by following method
STEP1: goto command prompt
STEP2: type in prompt e:\> "mkdir \\.\e:\con"
STEP3: verify by typing "dir \\.\e:\con"
STEP4: delete the file or folder "rmdir \\.\e:\con"

replace e with any drive of ur choice, and its there.

Aditya Sinha
Wesley Vogel said:
CON is short for CONsole and consists of the keyboard (input) and the
display (output).

Reserved Names (reserved device names)

[[Do not use the following reserved device names for the name of a file:
CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9,
LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Also avoid
these names followed by an extension, for example, NUL.tx7.

Windows NT: CLOCK$ is also a reserved device name. ]]
from...
Naming a File
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp


--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Aditya Sinha said:
Hello All,

Can anyone please help me in creating a folder named "con" on my system.
Upon naming the new folder as "con" it just reverts back to new folder.

Aditya Sinha
 
Back
Top