I have a variable that can contain string and/or number but in some case i have to remove numeric characters. So i am basicly;
if defined ARG2 (
for %%b in (0 1 2 3 4 5 6 7 8 9) do set ARG2=!ARG2:%%b=!
)
It works almost all cases but there is a problem. If ARG2 contain nothing but numeric characters its changing ARG2 value to something like 9=
. How can i fix this issue or is there a better way to remove numeric characters from variable?