i want make a batch file that can search for a certain line of text in a .txt or another .bat file. say i have a text file with the line a text- -this is a batch file
then when i run the batch file it searches the specified .txt file and if it finds the above text it continues, if it doesnt then the batch file closes. kind of like the if exist and if not exist commands but instead of file names i need to use text in a file. any ideas
If you can't play youtube (320p) on newer computers, then you know you got ripped off
find "-this is a batch file" anyfile.bat if errorlevel 1 goto end
| « Batch file actions with W... | Copy files from multiple ... » |