windows文件夹 命名 您所在的位置:网站首页 win7文件中不能包括的符号 windows文件夹 命名

windows文件夹 命名

2024-02-23 23:19| 来源: 网络整理| 查看: 265

windows文件夹 命名

windows文件夹 命名

why-is-it-not-possible-to-name-a-folder-dot-line-dot-in-windows-seven-00

Sometimes for the sake of curiosity, or based on an actual desire to just do something different, you may try to use some unusual names for folders on your Windows system–with mixed results. With that in mind, today’s SuperUser Q&A post has the answer to a curious reader’s question.

有时出于好奇,或出于实际的意愿做一些不同的事情,您可能会尝试在Windows系统上的文件夹中使用一些不寻常的名称-结果混合。 考虑到这一点,今天的SuperUser Q&A帖子回答了一个好奇的读者的问题。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“问答”环节由SuperUser提供,它是Stack Exchange的一个分支,该社区是由社区驱动的Q&A网站分组。

Message window screenshot courtesy of Ben N (SuperUser).

消息窗口屏幕快照由Ben N(SuperUser)提供 。

问题 (The Question)

SuperUser reader EdwardBlack wants to know why it is not possible to name a folder ._. on his Windows 7 system:

超级用户阅读器EdwardBlack想知道为什么无法命名文件夹._。 在他的Windows 7系统上:

I just noticed that it is not possible to name a folder ._. on my Windows 7 system. It gets renamed to ._ instead. Sometimes it disappears just after naming it, but then reappears after refreshing the view. Windows seems to have a problem with dots at the end of a filename. Why is this?

我只是注意到无法命名文件夹._. 在我的Windows 7系统上。 它改为重命名为._ 。 有时,它在命名后就消失了,但是在刷新视图后才重新出现。 Windows似乎在文件名末尾出现点问题。 为什么是这样?

Why is it not possible to name a folder ._. in Windows 7?

为什么无法命名文件夹._。 在Windows 7中?

答案 (The Answer)

SuperUser contributor Ben N has the answer for us:

超级用户贡献者Ben N为我们提供了答案:

Windows normally requires files to have either no extension or an extension that is at least one character long. It does not like zero length extensions (i.e. file names that end with a period). Folders can have extensions too, therefore, Windows does not let their names end with a period.

Windows通常要求文件没有扩展名或至少一个字符长的扩展名。 它不喜欢零长度的扩展名(即以句点结尾的文件名)。 文件夹也可以具有扩展名,因此Windows不允许其名称以句点结尾。

Source: From the article linked to by DavidPostill:

来源: 摘自 DavidPostill 链接的文章 :

Use a period to separate the base file name from the extension in the name of a directory or file.

使用句点将基本文件名与目录或文件名中的扩展名分开。

If you try to end a file or directory name with a period, Windows just assumes that you did not want an extension and thus removes it (even if you create it with the md command in a command prompt window).

如果您尝试以句号结尾的文件或目录名,则Windows仅假定您不需要扩展名,因此将其删除(即使您在命令提示符窗口中使用md命令创建了扩展名)。

Danger Zone

危险区

If you really want a folder name to end with period, you will need to use the magic raw name override sequence of \\?\. In a command prompt window, md \\?\C:\path\to\container\._. will indeed create a folder named ._., but lots of programs will have problems with it, even Windows Explorer:

如果您确实希望文件夹名称以句号结尾,则将需要使用\\?\的原始名称魔术覆盖。 在命令提示符窗口中, md \\?\ C:\ path \ to \ container \ ._。 确实会创建一个名为._的文件夹。 ,但是很多程序都会遇到问题,甚至Windows Explorer:

why-is-it-not-possible-to-name-a-folder-dot-line-dot-in-windows-seven-01

Such a directory can only be removed with the rd command followed by its \\?\ name, or renamed with its short (8.3, dir /x) name.

只能使用rd命令后跟其\\?\名称将其删除,或使用其短名称(8.3,dir / x)重命名 。

Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

有什么补充说明吗? 在评论中听起来不错。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程 。

翻译自: https://www.howtogeek.com/239995/why-isnt-it-possible-to-name-a-folder-._.-in-windows-7/

windows文件夹 命名



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

      专题文章
        CopyRight 2018-2019 实验室设备网 版权所有