Solved How to find a string and do a command if found in Batch file

December 8, 2011 at 08:05:02
Specs: DOS
Can someone help me to find a string in a file and if found do a command.
For example: findstr "version" "c/myfile.txt" and if found call another bat file (check.bat)
Thnks in advance..

See More: How to find a string and do a command if found in Batch file

Report •

#1
December 8, 2011 at 09:22:55
✔ Best Answer
findstr "version" "c/myfile.txt" > NUL && call check.bat

How To Ask Questions The Smart Way


Report •
Related Solutions


Ask Question