文件夹名称应该以句点开头吗?
对于以句点开头的文件夹名称是否有任何准则或标准? (例如:.NET)。我有一个安装程序需要执行此操作,现在我们使用“DotNET”而不是“.NET”作为文件夹名称。
谢谢!
Are there any guidelines or standards out there for folder names starting with a period? (e.g.: .NET). I have an installer that requires this to happen and right now we are using 'DotNET' instead of '.NET' for our folder names.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
Windows 世界中没有这样的指导方针。
在 unix/linux 环境中,任何以 .按照惯例,它是一个隐藏文件/目录。
There are no such guidelines in the Windows world.
In unix/linux environments, any file or directory starting with a . is by convention a hidden file/directory.
以句点开头的文件夹完全没问题。但是,如果您进行任何 Mono 开发,请记住,在 unix/linux/GNU 中,默认情况下,任何具有句点前缀的内容都是“隐藏”的。
Folders that start with a period are perfectly fine. If you do any Mono development, however, keep in mind that in unix/linux/GNU, anything that has a period prefix is "hidden" by default.
历史上以“.”开头的文件名字符被隐藏(Unix、Linux、Mac OS X)。在 Windows 上,它们可以是设备名称。通常最好避免以“.”开头的文件或目录名。特点。
Historically filenames that start with a '.' character are hidden (Unix, Linux, Mac OS X). On Windows they can be device names. Generally best to avoid file or directory names that start with a '.' character.
以句点开头的文件夹名称通常没有问题;但是,与 Unix 和 Linux 环境不同,这些文件夹不会被隐藏。要在 Windows 中执行此操作,您需要设置文件夹的系统属性。
There are generally no issues with starting folder names with a period; however, unlike Unix and Linux environments these folders won't be hidden. To do that in Windows you need to set the System attribute on the folder.
小心这个;尽管您可以通过编程方式创建它们,但无法使用 Windows 资源管理器创建这样的文件。尝试在 Windows7 中将文件夹重命名为“.net”,它抱怨我没有提供文件名。所以这意味着用户和开发人员可能会遇到麻烦。这可能不值得做。
Microsoft 将框架安装在 \windows\Microsoft.Net 中,因此您可能想使用它。
Watch out with this; although you can create them programatically, you can't create a file like this with Windows Explorer. Trying in Windows7 to rename a folder to ".net" it complained that I hadn't provided a filename. So this means users and developers might have trouble. It's probably not worth doing.
Microsoft install the framework in \windows\Microsoft.Net, so you might want to use that instead.