How to remove files not containing string? - Windows
<p>i want to remove all files not containing string "EXAMPLE STRING" in current folder.
How to do that?</p>

<p>I tried to, somehow, change this:</p>

<pre><code>  for /f "eol=: delims="  %F in ('dir /b /a-d * ') do find "EXAMPLE STRING" %F &gt; nul &amp;&amp; del "%F"
</code></pre>

<p>But this deletes files with my string, not without.
How to make a command that would delete all files without string "EXAMPLE STRING"?</p>