If I understand correctly, perhaps you're looking for something like this:
@Echo Off
SetLocal EnableExtensions EnableDelayedExpansion
Set "f=0119315314"
Set "i=0"
For /F Delims^=^ EOL^= %%G In (
'%__AppDir__%cmd.exe /U/D/C Echo(!f!^|%__AppDir__%find.exe /V ""') Do (
Set /A "i+=1, m=i%%2"
If !m! Equ 0 (Set "s=!s!%%G ") Else Set "s=!s!%%G")
If %m% Equ 0 Set "s=%s:~,-1%"
Echo(%s%
Pause
Expected result:
01 19 31 53 14
Or perhaps you're looking for something a little simpler:
@Echo Off
SetLocal EnableExtensions EnableDelayedExpansion
Set "f=0119315314"
For /L %%G In (0,2,20) Do If Not "!f:~%%G,2!" == "" Echo(!f:~%%G,2!
Pause
Expected output:
01
19
31
53
14
In this example you can increase 20
if you intend to use a string of more than twenty characters.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…