474
113
Many programs needs folder names that starts with a dot, like .emacs.d
, .gimp-2.2
, .jedit
etc. How do I create such a folder?
When using the Windows Explorer in Windows 2000 (and other versions), I get an error message saying "You have to enter a filename". The only solution I have come up with, is to open a command prompt (Start > Run > "CMD" > OK) and enter mkdir .mydir
.
Why have Microsoft this error message in the Explorer, but not in the command shell? Is there any registry hack out there to fix this, so that I am able to enter the folder name directly in the Explorer?
Related post on SO - How to manually create a file with a . dot prefix in windows for example .htaccess
– RBT – 2019-03-22T05:35:28.847I encountered a similar problem when creating files. Some files were named
com4.txt
,com1.txt
etc and those are reserved names for devices, so it crashed my software. – Zimano – 2020-02-12T16:00:29.6906This is an ancient protection built into windows explorer and dates back to the time that only DOS 8.3 filenames were available (Win 3.1) and files with just an extension were not allowed. Microsoft never bothered to remove this from the Explorer, probably because humans using the Explorer should be "protected" from accidentally creating files without a filename (i.e., only extension). – None – 2009-11-02T15:22:13.527
14
See also "How do I rename a file to .htaccess in Windows 7?" at http://superuser.com/questions/56562/how-do-i-rename-a-file-to-htaccess-in-windows-7/
– Arjan – 2009-11-02T15:30:29.240