Inverting find in files search

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
ikes
Posts: 4
Joined: Wed Mar 24, 2004 2:35 pm

Inverting find in files search

Post by ikes »

I'd like to be able to search all files EXCEPT a certain extension(s). For example, maybe search all text files, but no binaries. So I may only want to exclude *.exe. Something like " find in: !*.exe".

Anyone know of a way to do this?

Thanks,
Dan
User avatar
s_reynisson
Posts: 940
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

There is a way by using so-called @-files. See TP's help on "How to Find in Multiple Files". HTH
...Note that by creating a file containing a list of file names, one per line, and specifying the name of that file in this box, preceded by the character '@', this command will search the specified files.
Then I open up and see
the person fumbling here is me
a different way to be
ikes
Posts: 4
Joined: Wed Mar 24, 2004 2:35 pm

Post by ikes »

Nothing on the fly?

Thanks though
Ed
Posts: 103
Joined: Tue Mar 04, 2003 9:09 am
Location: Devon, UK

Post by Ed »

Unselect the "Binary files" box on the "Find in Files" dialogue window
ikes
Posts: 4
Joined: Wed Mar 24, 2004 2:35 pm

Post by ikes »

I just want a quick general way to exclude file types. Binary vs. Non was just an example.
User avatar
Bob Hansen
Posts: 1517
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Off the top of my head........

Check out XXcopy at www.xxcopy.com. One option in xxcopy is to list files to be copied without copying. But they also have an exclusion option. So you could use this to find files without extension "abc".

This may not work for what you want to do. Could possible pipe the results to a file and then parse it?

I have not checked this out, just a quick thought.....
Hope this was helpful.............good luck,
Bob
Post Reply