@ECHO OFF
SET src=D:\source
SET bdir=D:\backup
SET pre=%DATE:~-4%-%DATE:~3,2%-%DATE:~0,2%-
SET pst=.%TIME:~3,2%.%TIME:~6,2%
IF "%time:~0,1%" GTR "0" SET bf=@ECHO OFF
SET src=D:\source
SET bdir=D:\backup
SET pre=%DATE:~-4%-%DATE:~3,2%-%DATE:~0,2%-
SET pst=.%TIME:~3,2%.%TIME:~6,2%
IF "%time:~0,1%" GTR "0" SET bf=%pre%%TIME:~0,2%%pst%
IF "%time:~0,1%" LSS "0" SET bf=%pre%0%TIME:~1,1%%pst%
xcopy /krchief /z /-y %src% %bdir%\%bf% >> %bdir%\%bf%.log
%TIME:~0,2%%pst%
IF "%time:~0,1%" LSS "0" SET bf=%pre%0%TIME:~1,1%%pst%
xcopy /krchief /z /-y %src% %bdir%\%bf% >> %bdir%\%bf%.log
resultado: