Create a folder name with a period at the beginningMay 11, 2016
A tech writing colleague, Stuart B, sent me this information to share on this blog. He wanted to create or rename a folder in Windows that started with a period (e.g. .foo). Now, I don’t know WHY he wanted to do this, but he did. He found that Windows Explorer won’t let you create or rename a folder if you put a period at the beginning of the name — you get an error that tells you to type a file name, which of course you already did!
It seems you can do this in DOS using the mkdir command (mkdir .foo), but that’s clunky.
However, there’s a trick to getting Windows Explorer to create or rename such a folder — you add a period before AND after the file name (e.g. .foo.). Windows then strips the trailing period, but leaves the beginning one alone. And no error message.
Stuart said this trick seems to work in all versions of Windows he tested (Windows 10 back to Vista).
Thanks for sharing, Stuart!