Instead of setting variables on lines 24, 25 and 26 (code from original post) I used "tokens" in the FOR statement to parse the filenames, for use on line 7 below. The relevant portion of the new code looks like:
Code:
set hlist=%outtar%\hdrList.txt FOR /F "tokens=1,2* delims=." %%y in (%hlist%)
Leave a comment: