penpen wrote:Have you tested it, or do you assume that the script analyzes the files content?balubeto wrote:There is something that does not work because your script analyzes the files content and not their names. Why?
Note that the above is a "for /R" loop and no "for /F" loop.
penpen
I tested the command
for /R "C:\" %a in (.) do if "%%~nxa" == "$Windows.~BT" echo(%%~fa
and noticed that it looks for the specified string in each file and displays the full path of the files where the string exists. Why?
Thanks
Bye