I modified his html to make it valid.
I also set up a small test file of my own with 3 records.
I do not get Counts back from your bat file???
I get only the Date and 2 commas?
My small file called MyTest.txt has 3 records
The revised bat file based on yours.
@echo off & setLocal EnableDELAYedExpansion
for /f "tokens=* delims= " %%a in ('find /c /i "Success" ^< C:\Documents and Settings\NewAdmin\My Documents\MyTest.txt') do (
for /f "tokens=* delims= " %%a in ('find /c /i "Failed" ^< C:\Documents and Settings\NewAdmin\My Documents\tmp.html') do (
>> orange.txt echo %date% , !S!, !F!
Mon 11/02/2009 , ,
I also tried the Find statement in cmd window:
C:\Documents and Settings\NewAdmin\My Documents>Find /c /i "Success" MyTest.txt
---------- MYTEST.TXT: 2
It seems it is not getting to the files. Any ideas?
I've done some google searching for bat files with a find string and count but can not find the syntax to verify it or to try something different.