I am trying to execute a windows script against bunch of files in a directory. This script checks the format of the files it it is not good, I need to write to the log.txt file so that I can go back and fix each file.
I tried this:
for /f "Tokens=*" %f in ('dir /l/b/a-d') do (testscript -l "%f") >>logs.txt
I need to now the file names as well.