If you use OSX and Windows together often, you’re likely to end up with a bunch of hidden .DS_STORE files all over your Windows drives. You can easily search and destroy them all using this command:
(Open the command line first of course. You can do this by going to Start > Run, then typing “cmd” and mashing enter. Or just type “cmd” in the Windows 7 search box.)
del /s /q /f /a:h .DS_STORE
That will find every instance of this Mac resource file and delete it. Good times. I should note that this will only search inside the folder you’re in, as well as every folder below that. So, if you wanted to search and clean an entire drive, make sure you’re in the root folder. Get there with this:
Commenter Bob pointed out that you could also use this for other Mac junk files, like ._[filename] a like so:
del /s /q /f /a:h ._.*
Put both those commands into a batch file, and you’ve got instant cleanup! You could even have the .bat run at start time or something to automate the process. Thanks to commenter Johnny for an extra improvement!