Search found 1 match

by Javid
23 Feb 2017 01:56
Forum: DOS Batch Forum
Topic: Check if command's output contains some text
Replies: 3
Views: 33061

Re: Check if command's output contains some text

avery_larry wrote:

Code: Select all

yourcommandhere | find /i "the text you're looking for"
if not errorlevel 1 (
   echo The stuff you want to do
   echo goes here
)


Thank you !! this works for me