how to allow files starting with period and no extension in windows 2003 server? [closed]

独自空忆成欢 提交于 2019-12-06 16:49:28

问题


How can I create this file in a directory in windows 2003 SP2:

.hgignore

I get error: You must type a file name.


回答1:


That's a "feature" of Windows Explorer. Try to create your files from a command line (or from a batch/program you wrote) and it should work fine. Try this from a dos prompt:

echo Hello there! > .hgignore



回答2:


By the way Raymond Chen had a blog post about this topic a while back:

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

In which he mentions

You can do it from the command line or use your favorite file management tool.



来源:https://stackoverflow.com/questions/19442/how-to-allow-files-starting-with-period-and-no-extension-in-windows-2003-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!