11
Apr

Deleting all files which do not contain @2x in Windows

[codesyntax lang="bash"]
for /f "eol=: delims=" %F in ('dir /b /a-d * ^| find /v /i "@2x"') do del "%F"
[/codesyntax] From http://stackoverflow.com/questions/10788075/dos-batch-for-loop-to-delete-files-not-containing-a-string