如何在Windows 2003服务器中允许以句点开头但没有扩展名的文件?

时间:2008-08-21 07:26:27

标签: mercurial windows-server-2003 hgignore

如何在Windows 2003 SP2的目录中创建此文件:

.hgignore

我收到错误:您必须输入文件名。

2 个答案:

答案 0 :(得分:28)

这是Windows资源管理器的“功能”。尝试从命令行(或您编写的批处理/程序)创建文件,它应该可以正常工作。从dos提示符处尝试:

echo Hello there! > .hgignore

答案 1 :(得分:4)

顺便说一句,Raymond Chen有一篇关于这个话题的博客文章:

Why doesn't Explorer let you create a file whose name begins with a dot?

他提到了

  

您可以从命令行执行此操作   使用您喜欢的文件管理   工具。