I have a script which I am using the set statement.
alpha is a variable that has been previously set but for some reason the following does not work.
Code: Select all
&&set "alpha=%fname:~-1!%"
All I want is the the last digit of "fname" (also a variable set earlier) to be assigned to "alpha"
I can't understand why it does not work....
Thanks for any suggestions
Regards,
John