|Thanks Mark. i should be more clear on what I need though...|
1. read all files in the directory (no recursing)
2. move files matching 6 characters at offset 15 to a predefined variable to a subfolder
Consider the following:
For /F "tokens=*" %%A in ('dir /b /a-d *.pdf') DO (
if checkvar==%compvar% DO (
Move /Y %%A <subfolder name>
This is what I can come up with. What do you think?