Windows : How to list files not containing a string In the current folder, list all markdown files that don"t have the "draft" string: @for /r %f in (*.md) do @find "draft" "%f" > nul || echo %f