Windows 和重命名文件夹,'con' 问题 [英] Windows and renaming folders, the 'con' issue

查看:30
本文介绍了Windows 和重命名文件夹,'con' 问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么在 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆