I want to make a batch file that can find a specific text file not by name but by its contents better yet not by its entire contents but rather by selected parts of it.
For instance if I have a txt file with the contents
Tom-Dick-and-Harry
I would like my batch file to calculate that if there is a line anywhere in the txt file that contains a T and if 7 characters on from that the letter is a K and two characters on from that the letter is an A the file is recognised as being my file and it is deleted.
Perhaps better explained by a batch file that can find a “fingerprint” this way others can rename my txt file but I will still find it…
How could I achieve this?