Hi I'm trying to loop and pad some variables with 0 in a batch script. I've looked up on stackoverflow to do both but have some trouble weith percents and double percents.
The following fails to pad it with 0s. Where should I add percents here?
for /L %%i in (1,1,10) do (
set "i=0%i%"
set "i=%i:~-2%"
echo "%%i"
)