|tokens are hard to explain, but ill do my best.|
say you had "tokens=2 delims= ", the script would get the second "item" ( again, I can't really expain it) using " " as a separator (delimiter).
ex. The quick brown fox jumped over the lazy dog.
The word quick is the seconds word with a space seperating it, so it would set quick as the variable.
the /i switch of findstr makes the string to search not case-sensitive. The /m switch prints the file name, allowing you to set it as a variable (to move).
To find another string, change where i wrote "STRING" to what you want to search for. Also, change the "P:\a\t\h" to the path of your choice.
Can I put a question here?