April 14th, 2008

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

Rolf Viehmann asks why Explorer doesn’t let you create a file whose name begins with a dot. Such files are considered to have an extension but no name. If the extension is known and the user has chosen to hide known extensions, the resulting file would have no name at all! If you really want to create a file with a leading dot in its name, you are free to do so. You can do it from the command line or use your favorite file management tool. And then you can watch the file show up with no name and then observe the confusion that ensues. Maybe you’re lucky and don’t run any programs that freak out when a file has no name. If so, then more power to you.

If it really bugs you that you can’t do it from Explorer, you are free to write your own shell extension to do “Rename this file, and if I’m going to shoot myself in the foot, then let me.”

Topics
Other

Author

Raymond has been involved in the evolution of Windows for more than 30 years. In 2003, he began a Web site known as The Old New Thing which has grown in popularity far beyond his wildest imagination, a development which still gives him the heebie-jeebies. The Web site spawned a book, coincidentally also titled The Old New Thing (Addison Wesley 2007). He occasionally appears on the Windows Dev Docs Twitter account to tell stories which convey no useful information.

0 comments

Discussion are closed.