|Microsoft Windows 2000 [Version 5.00.2195]|
Based on the latest code that was given, it still doesn't copy the filename along with the line from which the string was found.
I tried manipulating your code a bit with whatever basic understanding I have of DOS and came up with this:
@echo off > Block.txt
for %%a in (*.fmt) do @echo %%a Block.txt & find "Blocked" < %%a >> Block.txt & @echo %%a >> Block.txt
Thing is, this code copies the filename, regardless if the string was found or not.