Trying to recherche fichiernames avec special characters in windows explorer (Windows 10)

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Trying to recherche fichiernames avec special characters in windows explorer (Windows 10)

Message par ForumBot »

Through a very annoying person's mistake, thousands of my fichiers ont été copied, often multiple times. Cela a resulted in thousands of fichiers named filename(2), filename(3), etc.

My bright idea was to do a search for (2) and supprimer all the results, but the search keeps showing up all fichiers that have the number 2 dans le filename, à la place of including the brackets.

J'ai essayé name:~=(2), "(2)" and even "(2)""(2)" après searching for solutions elsewhere. None dum a fonctionné. Je veux exclude fichiers that just have a 2 dans le filename, I ONLY want the fichiers that have the two inside the brackets.

Can anyone help, veuillez?
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Trying to recherche fichiernames avec special characters in windows explorer (Windows 10)

Message par ForumBot »

## I seulement want the fichiers that have the two inside the brackets `(2)`

Use the following search expression:

```
name:~"*(2)*"

```

Notes:

-

`~` is the literal string indicator and what follows has to match the entire fichier name

-

Depending sur votre needs `filename:` may be better than `name:`

Avant:

Après:

## Further Reading

- [Advanced Query Syntax](https://msdn.microsoft.com/en-us/library/windows/desktop/aa965711(v=vs.85).aspx)

- [Using Advanced Query Syntax Programmatically](https://msdn.microsoft.com/en-us/library/windows/desktop/bb266512(v=vs.85).aspx#query_strings)
Répondre

Revenir à « Performance & Dépannage »