Specify Multiple Directories in Notepad++ Find in Files

3.2k views Asked by At

Notepad++'s "Find in Files" is amazingly helpful. But I want to specify a bunch of directories in which the search should take place.

enter image description here

Above you see me add the wildcards to the "Directory" field:

C:\*\vc90\*

However my version of Notepad++ doesn't seem to tolerate asterisks in the path.

I have about 30 Visual Studio Projects who's names I want to be grabbed by the first asterisks in the path, but I only want to modify files in the vc90 version of these projects (not vc80, vc100, etc.), and I don't want to have to go individually specify each of the directories.

Is there some other recourse for me?

2

There are 2 answers

3
Denham Coote On

PowerGREP

While it's not Notepad++, and it's not free, PowerGREP can do what you're looking for. You can download an evaluation version, which appears to still be working on my machine, months later.

I created a few mock files/folders and it seems to work as you expect. There are options to create backups, etc.

enter image description here

enter image description here

enter image description here

0
Mahn On

VSCode is free and supports wilcards for both files and paths in search/replace operations.