I can't figure out the new search, it seems like it doesn't work correctly. I know the folder I am searching contains .svn folder.

  • Are you looking for them so you can delete them? If so, you're doing it wrong. Read up on svn export – Doug Harris Aug 22 '11 at 17:57
  • They are actually orphaned files so export wouldn't help. – MVCylon Aug 23 '11 at 1:32
  • Aha. Sorry if my tone was haughty. – Doug Harris Aug 23 '11 at 1:35

Try name:~".svn" if you want to use the Windows Search

  • NB: this also helps search for parentheses – Mark Sowul Aug 22 '11 at 17:51
  • Wow, now that's some useful (poorly documented) utility. I had read MS's guide to advanced searching in Windows7 and I don't remember seeing this at all. – MVCylon Aug 23 '11 at 13:31
  • Yeah I agree, it's maddening; I found it while trying to search for files with parentheses, (thanks to the horrid interaction between the new Live Mesh and Photo Gallery's face tagging). The tilde seems to basically cause Windows to treat the text as literal. – Mark Sowul Aug 23 '11 at 17:49

using the commane line:

dir /s /b /ad | findstr "\.svn"

keep in mind it will also return sub-folders.

  • Close, but I'm pretty sure on back on XP I could just find the folder I wanted. Did they remove this feature? It seems like Windows 7 removed a lot of good power user features. – MVCylon Aug 16 '11 at 12:11
  • Try dir /s /b /ad | findstr ".svn$" – sgmoore Aug 16 '11 at 12:28
  • I tweaked something I already had plus your input FOR /F "delims=" %d in ('dir /s /b /ad ".svn" ^| sort /r') do rd "%d" /S – MVCylon Aug 16 '11 at 12:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.