Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

.hgignore

I get error: You must type a file name.

like image 732
Christopher Mahan Avatar asked Aug 21 '08 07:08

Christopher Mahan


2 Answers

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
like image 169
Ishmaeel Avatar answered Nov 12 '22 03:11

Ishmaeel


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? (archive.org link with comments: https://web.archive.org/web/20100305064616/http://blogs.msdn.com/oldnewthing/archive/2008/04/14/8389268.aspx)

In which he mentions

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

like image 5
Pat Avatar answered Nov 12 '22 01:11

Pat