I need a way to list all files that does NOT contain a known text.
The project contains over 1000 files and I only want the ones that does not contain s
UPDATE: as Peter McVoy pointed out, this solution does not work. It will return false positives (files that contain a line without the text to search for will also be printed). A VS macro or a custom powershell script is probably the way to go. I might revisit this answer later.
For reference, this was my answer:
You can do this on the command line:
findstr /S /V /M text_to_search_for *.cs
This will print all filenames that do not contain the text