FOR /F works on WIN 10 and not on XP
Posted: 08 Nov 2022 11:01
Hello all!
This code
Result on Windows 10:
Result on XP:
works on Windows 10 but not on XP. Any ideas why?
It removes leading zeroes.
Thanks.
Saso
(This approach is here: viewtopic.php?f=3&t=8136)
This code
Code: Select all
@echo off
set var=0001
for /f "tokens=* delims=0" %%~ in ("%var%") do set var=%%~
echo %var%x
Code: Select all
1x
Code: Select all
x
It removes leading zeroes.
Thanks.
Saso
(This approach is here: viewtopic.php?f=3&t=8136)