- Batch Script Tutorial
- Batch Script - Home
- Batch Script - Overview
- Batch Script - Environment
- Batch Script - Commands
- Batch Script - Files
- Batch Script - Syntax
- Batch Script - Variables
- Batch Script - Comments
- Batch Script - Strings
- Batch Script - Arrays
- Batch Script - Decision Making
- Batch Script - Operators
- Batch Script - DATE & TIME
- Batch Script - Input / Output
- Batch Script - Return Code
- Batch Script - Functions
- Batch Script - Process
- Batch Script - Aliases
- Batch Script - Devices
- Batch Script - Registry
- Batch Script - Network
- Batch Script - Printing
- Batch Script - Debugging
- Batch Script - Logging
- Batch Script Resources
- Batch Script - Quick Guide
- Batch Script - Useful Resources
- Batch Script - Discussion
Batch Script - FIND
This batch command searches for a string in files or input, outputting matching lines.
Syntax
FIND [text] [destination]
Where text is the string which needs to be searched for and destination is the source in which the search needs to take place.
Example
@echo off FIND "Application" C:\tp\lists.txt
Output
If the word “Application” resides in the file lists.txt, the line containing the string will be displayed in the command prompt.
batch_script_commands.htm
Advertisements