Invert the meaning of the FOR command?
With batch files, it is easy enough to handle all files that share a string in a filename or extension, for example:
FOR /R %F IN (*.EXE) DO @ECHO %F
But what if I want to invert the meaning of a set of files? For example, handle all files that don't end with .EXE?
FOR /R %F IN (anything-but-exe) DO @ECHO %F
I could not find anything similar to what I was looking for by reading the output
source to share