Cannot create any file with any extension anywhere with the name "con"

J

ju.c

I'm serious! I was tweaking config.sys files and wanted to keep them
sorted together, so I renamed some to conf.sys, config2.sys, etc.

But when I renamed one to "con.sys" I got this error:

"Error Renaming File or Folder
Cannot rename ... document: a file with the name you specified already
exists. Specify a different file name."

I thought there was a corrupt file in the folder so, after I could find
no problem files I ran chkdsk. When I tried to name the file now, I
got the error message again. Then I tried creating one everywhere,
and the extension didn't matter. Any file with any extension in any
folder named "con" fails with the error! Would someone try it and
let me know if it's my computer or a Windows bug. Thanks.


ju.c
 
J

Jose

I'm serious! I was tweaking config.sys files and wanted to keep them
sorted together, so I renamed some to conf.sys, config2.sys, etc.

But when I renamed one to "con.sys" I got this error:

"Error Renaming File or Folder
Cannot rename ... document: a file with the name you specified already
exists. Specify a different file name."

I thought there was a corrupt file in the folder so, after I could find
no problem files I ran chkdsk. When I tried to name the file now, I
got the error message again. Then I tried creating one everywhere,
and the extension didn't matter. Any file with any extension in any
folder named "con" fails with the error! Would someone try it and
let me know if it's my computer or a Windows bug. Thanks.

ju.c

CON = console.

You can't name a folder LPT1, or COM1 either - and other things.

It's not a bug, it's a feature. http://msdn.microsoft.com/en-us/library/aa365247.aspx

Jose
 
T

Twayne

ju.c said:
I'm serious! I was tweaking config.sys files and wanted to keep them
sorted together, so I renamed some to conf.sys, config2.sys, etc.

But when I renamed one to "con.sys" I got this error:

"Error Renaming File or Folder
Cannot rename ... document: a file with the name you specified already
exists. Specify a different file name."

I thought there was a corrupt file in the folder so, after I could
find no problem files I ran chkdsk. When I tried to name the file
now, I got the error message again. Then I tried creating one
everywhere, and the extension didn't matter. Any file with any
extension in any
folder named "con" fails with the error! Would someone try it and
let me know if it's my computer or a Windows bug. Thanks.


ju.c

"con" is a reserved word and thus cannot be used in the way you're
trying to use it. It stands for "console" and is one of the internals
that control where output goes. There are others, too, if you wish to
peruse the MS Site and search for "reserved names" I think it is.

HTH,

Twayne`
 
J

ju.c

Oh, thanks.


Twayne said:
"con" is a reserved word and thus cannot be used in the way you're
trying to use it. It stands for "console" and is one of the internals
that control where output goes. There are others, too, if you wish to
peruse the MS Site and search for "reserved names" I think it is.

HTH,

Twayne`
 

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

Top