Simple little tip here to delete all files in a directory that contain a given string using findstr
, for
and del
.
for /f "delims=" %f in ('findstr /m "yourstring" *.*') do @del /f /q %~f
Simple little tip here to delete all files in a directory that contain a given string using findstr
, for
and del
.
for /f "delims=" %f in ('findstr /m "yourstring" *.*') do @del /f /q %~f