Good morning, I have several .TXT files with random names, and I would like to rename them. However, I would like to rename it with an information that is in the first line of .txt .
Ex. Current file name: TD0303051209344700001AF-0000-1562.txt
And in the first line within txt I have: 00000000000001899970462605 201804232018042018051220180508982
The new file name should be 899970462605 (which is in column 15 through 27).
Now I need to do this 350 times. because the files have these names:
TD0303051209344700001AF-0000-1564.txt
TD0303051209344700001AF-0000-1565.txt
TD0303051209344700001AF-0000-1566.txt
How to create this looping ?? Thanks