Code: Select all
@echo off
copy /y %~f0 *.backup
findstr /B /V /C:"LLLLL#" %~f0 >tmp.tmp&echo LLLLL#Last run was at: %date% %time% %username%#>>tmp.tmp&move tmp.tmp %~f0 >nul
fc %~n0.backup %~f0
goto :EOF
LLLLL#Last run was at: pon. 15. 07. 2024 19:49:23,88 saso#
Code: Select all
Comparing files test.backup and C:\TEMP\TEST.CMD
***** test.backup
LLLLL#Last run was at: pon. 15. 07. 2024 19:49:23,88 saso#
***** C:\TEMP\TEST.CMD
LLLLL#Last run was at: pon. 15. 07. 2024 19:50:28,52 saso#
*****