|Ooh, you're not executing the batch-script in the same directory(s)..|
As already I said, give the path..?
If you execute the script from the desktop, without given a path, the dir /b/s command will look all sub-directory's under DESKTOP folder.
C:\Documents and Settings\Name\Desktop\YOUR-SCRIPT.bat
The script will look all directory's under Desktop, and doesnt find anything such as "Error" in any .log files.
Given path = C:\
for /f "tokens=* delims= " %%a in ('dir /b/s C:\*.log') do (
find "Error " < %%a >> Error.txt
Happy is ONE who says I am an OttoMAN.