List files whose names do not contain a certain character.

Solved
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

3 answers

  1. brucine Posted messages 24932 Registration date   Status Member Last intervention   4 179
     
    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
    1
  2. jee pee Posted messages 9444 Registration date   Status Moderator Last intervention   9 981
     
    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 V
    NOT:V 


    --
            a foreigner is a friend we have not yet met.
    1
  3. Jeanthais
     
    Thank you for your answers, both of you. :)
    0