WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
Partners
Codegravity.com
Logix4u.net
Recover Data
custom t-shirts by Promopays.ca
Lost Birth Certificate
CF-Works.com
Easy Food Recipes
 
Forum
Pages (2) [1] 2   ( Go to first unread post )

Find All Files containing desired text, this program allows you to search files within a folder and all sub-folders for text strings.

JimG
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 723
Member No.: 11
Joined: 16-May 04


Here's a little program I've been working on.

It needs a little more work but is functioning quite well for me, and I need to move on to other things for awhile. This is the readme.txt file-


FindAll

This program allows you to search files within a folder and all sub-folders for text strings.
It is free for all purposes except it may not be copyrighted in such a manner that will prevent people from using it.

It was written for my own use to search the many megabytes of sample code I have amassed for examples and snippets. It will only search the first 4GB of any file.

The program will keep all settings in an .ini file. It will not itself write in the registry.

To use, first select a starting folder to search.
You may click on the ... button to search for a starting folder.
See below for a way to automatically select folders by right-clicking.

Select which files you want to search.
Files specifications are entered separated with a blank.
Wild card characters ? and * are allowed in file specifications.
*.asm is the same as just .asm
abc is the same as abc.*
You may select a preset file specifications from the dropdown.
You may edit the contents of the dropdown by pressing the ... button.

Enter search strings in the first edit box.

You may enter as many strings as you desire (up to the max for an edit box).
Each line represents one search string.
Embedded and trailing blanks are significant.
The program will search for each search string individually, not as a whole block.
Any line found that contains at least one of these strings will be output, unless it also contains one of the disqualifying strings.

Enter any disqualifying strings in the second edit box.
These work just as the search strings above.
Any line containing one of these strings will be discarded.

You may save the strings entered in a file if you wish.

You may read in saved strings from a previously saved file.

Enter the desired path and name of the output file.

Select any other desired criteria from the check boxes on the right.

Press the Search button.
The program will search every qualifying file for the strings entered.
The results if any will be written to the output file.

Press the Edit Output button to see the results.
You may press the Edit Output button before searching to see the results of the previous search.

Make a folder where you want to keep the program.

Copy FindAll.exe and FindAll.ini to the folder.
You can change the names, it's not important.

For best functionally, I add a right-click context menu to windows that will allow you to run the program by right clicking on a folder name.
The file named FindFile.reg contain the commands to add to the registry.

Edit the FindAll.reg file to point to the new folder.

Change the last part "Find Text In Files" to whatever you like.
[HKEY_CLASSES_ROOT\Directory\shell\Find Text In Files]

Make it the same for the next line.
[HKEY_CLASSES_ROOT\Directory\shell\Find Text In Files\command]

Make the last line point to where you put the program.
@="\"C:\\Program Files\\FindAll\\FindAll.exe\" \"%1\""
Note: the double slashes are required.

When done, double click on the FindAll.reg file to add it to your registry.


Please let me know if you find any bugs, etc.

-Jim

Prev:15

Attached File ( Number of downloads: 314 )
 Login or Register to download
PMEmail Poster
Top
Jupiter
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 660
Member No.: 773
Joined: 10-November 04


Hi Jim.
Thank you for release!
PMEmail Poster
Top
JimG
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 723
Member No.: 11
Joined: 16-May 04


Your welcome. I hope people get as much use out of it as I do smile.gif
PMEmail Poster
Top
icehole
Quote Post


Extremely Active Member
******

Group: Members
Posts: 168
Member No.: 1938
Joined: 12-January 06


Nice Jim.

Very Handy.
PMEmail Poster
Top
JimG
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 723
Member No.: 11
Joined: 16-May 04


Program updated in first post.

Subclassed rich edit controls so that user can enter a tab character in search strings.
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Pages (2) [1] 2  Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian