After reading your replies, I was thinking I would do this:
Set up a loop to have the batch file generate a new trail file for each iteration, that way the part number is embedded in the trail file as suggested. Then its just a matter of deleting/overwriting the previous trail file each time until it finishes the list.
I appreciate the help so far, and if anyone else has a suggestion, I'm all ears.