Код:

@ECHO OFF>222.txt
SETLOCAL ENABLEDELAYEDEXPANSION
FOR /F "tokens=*" %%I IN (111.txt) DO (
FOR /F "tokens=1,3 delims=:." %%J IN ("%%I") DO (
IF %%J==Сумм (
SET VAR1=%%K
IF DEFINED VAR1 (
SET VAR2=!VAR1:~1!
IF DEFINED VAR2 (
ECHO %%I>>222.txt
) ELSE (
ECHO %%I0>>222.txt
)) ELSE (
ECHO %%I.00>>222.txt
)) ELSE (
ECHO %%I>>222.txt
)))