List files whose names do not contain a certain character.
Solved
Jeanthais
-
Jeanthais -
Jeanthais -
Hello,
I'm struggling with something that may seem very simple to some.
I know how to select files that all contain a certain character (or word), which allows me to exclude files that do not have that character or word.
However, I can't find a command in Windows 10 that would allow me to list the files that do not contain a certain character (or word).
It's a practical question for sorting thousands of images.
With the second functionality, it would save me a huge amount of time sorting my files since the character I want to exclude from my search concerns the majority of my files (their names), and I only want the list of images that do not have that character in their names.
Thank you very much for your help.
Configuration: Windows / Firefox 92.0
I'm struggling with something that may seem very simple to some.
I know how to select files that all contain a certain character (or word), which allows me to exclude files that do not have that character or word.
However, I can't find a command in Windows 10 that would allow me to list the files that do not contain a certain character (or word).
It's a practical question for sorting thousands of images.
With the second functionality, it would save me a huge amount of time sorting my files since the character I want to exclude from my search concerns the majority of my files (their names), and I only want the list of images that do not have that character in their names.
Thank you very much for your help.
Configuration: Windows / Firefox 92.0
3 answers
-
Hello,
Assuming that the forbidden "word" is toto and looking in the drive F: then redirecting in the text "list":
DIR F: /a:-D /b | FINDSTR /i /v "toto" >> C:\list.txt -
Hello,
For searching files, by their name, content, size, etc., I use the utility Ransack: https://www.mythicsoft.com/agentransack/download/?src=upd
Integrated into Windows Explorer, it can be launched from a right-click on a directory, and typically you can perform a search for files containing V or, as you prefer, not VNOT:V
--
a foreigner is a friend we have not yet met. -