Search This Blog

Thursday, May 6, 2010

Using Sleep with findstr in a .bat

Programmer Question


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 !





Find the answer here

No comments:

Post a Comment

Related Posts with Thumbnails