Windows和重命名文件夹,“ con”问题 [英] Windows and renaming folders, the 'con' issue
问题描述
为什么在Windows中不能将文件夹命名为 con?
Why in Windows, can't you name a folder 'con'?
每当我尝试将文件夹命名为 con(不带引号)时,
Whenever I try to name a folder as "con" (without the quotes) it defaults to its original name.
为什么要这样做?
推荐答案
<在MS-DOS时代, con具有特殊含义。它引用了控制台,并允许您将其像其他文件一样对待。例如,您可以通过键入 copy con new.txt
创建一个新的文本文件。然后,您可以输入文本并在完成后点击 ^ Z
。
Back in the MS-DOS days, "con" had a special meaning. It referred to the console, and allowed you to treat it like any other file. For example, you might create a new text file by typing copy con new.txt
. Then you could enter your text and hit ^Z
when finished.
问题是,您仍然可以这样做。因此,就文件系统而言,已经有一个名为 con
的对象。也有其他保留名称,但是我看到输入这些名称已经在其他答案中提供了。
The thing is, you can still do that. Therefore, as far as the file system is concerned there is already an object out there named con
. There are other reserved names as well, but I see that while typing this those names have been provided already in other answers.
这篇关于Windows和重命名文件夹,“ con”问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!