I have many environment variables with value like testfilename.txtsomethingelse. The length of somethingelse is not
constant and neither the part before .txt for each of those variables.
I want to remove the string before .txt or the string after .txt of all those variables.
Is there a way to use wildcard to extract the string after .txt?
Can I do somthing like set a=%b:*.txt=%
I know this is not correct, would any experts give some ideas ?