Using Sleep with findstr in a .bat

Posted by user270506 on Stack Overflow See other posts from Stack Overflow or by user270506
Published on 2010-05-07T02:06:55Z Indexed on 2010/05/07 2:18 UTC
Read the original article Hit count: 249

Filed under:
|

I created a .bat file with the below lines

cd C:\MyFolder
d:
findstr "Apple" C:\log.txt |findstr "red" > red_apples.txt
SLEEP 3600
GOTO START

When the bat is executed, the SLEEP is not working and the commands are running continously.

Is there anything wrong with the code? Please help !

© Stack Overflow or respective owner

Related posts about findstr

Related posts about sleep