Using Windows Explorer, how to find file names starting with a dot (period), in 7 or Vista?

I've got a MacBook laptop in the house, and when Mac OS X copies files over the network, it often brings along hidden "dot-files" with it. For instance, if I copy "SomeUtility.zip", there will also be copied a hidden ".SomeUtility.zip" file. I consider these OS X dot-files as useless turds of data as far as the rest of my network is concerned, and don't want to leave them on my Windows file server.

Let's assume these dot-files will continue to happen. i.e. Think of the issue of getting OS X to stop creating those files, in the first place, to be another question altogether.

Rather: How can I use Windows Explorer to find files that begin with a dot / period? I'd like to periodically search my file server and blow them away. I tried searching for files matching ".*" but that yielded – and not unexpectedly – all files and folders.

Is there a way to enter more specific search criteria when searching in Windows Explorer? I'm referring to the search box that appears in the upper-right corner of an Explorer window. Please tell me there is a way to escape my query to do what I want?

(Failing that, I know I can map a drive letter and drop into a cygwin prompt and use the UNIX 'find' command, but I'd prefer a shiny easy way.)


Use Window's "Search Advanced Query Syntax", which basically lets you do stuff that Vista and XP advanced search used to let you (that Windows 7 hid). Read about it on MSDN.

Hence, you can just search filename:. to find all files with a file name that begins with "."


The windows Command prompt method to find all "dot files" in all directories below the current directory, but excluding directory names beginning with dot:

dir .*.* /s /a-D

filename:.*. -kind:folder

This finds all files which begin with a period, even those which do not have an extension. -kind:folder excludes folders from the search. Tested on Windows 7. Should work on Vista and Windows 8.