A blog about SQL Server, SSIS, C# and whatever else I happen to be dealing with in my professional life.

Find ramblings

Monday, May 18, 2009

Rename a file with a leading period in Windows

The short answer appears to be that Windows Explorer will not allow
you to rename a file with a leading dot. In a unix world, that'd be a
hidden file but Explorer will balk with

---------------------------
Rename
---------------------------
You must type a file name.
---------------------------
OK
---------------------------

The command line is just happy to let you rename files via mv
e.g. mv file1.txt .file1.txt

Nothing earth shattering but in the 14 years I've been using a Windows
variant, I've never run into it.

No comments: