A portable Windows batch script for quickly finding files or text within folders.
Recursively scans subdirectories, logs results to a “Util” folder on your Desktop, and offers a choice-driven interface.
- Recursive search through all subfolders
- Two modes:
1
— Search inside file contents (line number + matching text)2
— Search by filename
- Continuous loop: after each run, choose to:
1
— reuse the same folder2
— select a new folder
- Plain-text logs in
Util\search_content_log.txt
orUtil\search_filename_log.txt
No installation required—just download Search_Tool.bat
and place it wherever you like.
- Double-click
Search_Tool.bat
. - Enter folder path to scan.
- Enter search term (case-insensitive).
- Choose search type:
1
— file contents2
— filenames
- Review results in the log file on your Desktop.
- When prompted, press
1
to search again in the same folder or2
to pick a new one.
- There is no file-type filter currently, so results may include system, binary, or undesired files.
- Very large folders may produce large log files; consider narrowing your scope with filename search first.
- Added continuous loop with “reuse folder” or “new folder” choice
- Bumped version and updated header comments
- Fixed parsing of paths containing parentheses
- Switched to
CHOICE
for search-type input
- Modularized logic into subroutines (
CALL
) - Attempted to remove Delayed Expansion support
- Introduced parsing issues; reverted to 0.1.0
- Initial release: recursive filename/content search with Desktop\Util logs
- ConsistentHornet4 — improvement suggestions
- @BrainWaveCC — term-handling fixes (paths with parentheses)
- @amakvana — introduced
CHOICE
prompt for input-handling
This project is released under the MIT License.