anchor.diff:  set error=1
   
   :log
  -rem  .
  +rem      
   rem %date%   ( )
   rem %time%   ( )
  -echo %date% %time% %result% >> %logfile%
  +rem %result%  
  +rem %LogFile%    
  +rem %NumberStringsLog%   
  +::    
  +rem "" http://www.cyberforum.ru/cmd-bat/thread1299615.html
  +set "logging = echo %date% %time% %result% >> "%LogFile%""
  +if exist "%LogFile%" (
  + for /f %%i in ('"<"%LogFile%" find /c /v """') do (
  +  if %%i lss %NumberStringsLog%(
  +   %logging%
  +  ) else (
  +   <"%LogFile%" more +1>.tmp
  +   >"%LogFile%" type .tmp
  +   del .tmp
  +   %logging%
  +   )
  +  )
  +) else (
  + %logging%
  +)
   
   rem   
   rem      
  
positive.code: :: /C "cmd /c del /q @path" -   
  if exist %backup%%date%.rar (forfiles /P %backup% /M *.rar /D -%NumberArchives% /C "cmd /c del /q @path")
  
  rem      
  ::    
  ::  
  rem    
  ::     
  ::     
  if %error%==1 (color 0c
  echo %result%
  pause)
  rem  
  color 07
  chcp 866 > nul
  rem exit
negative.code: rem   
  set error=0
  rem   (   ).
  set LogFile=%backup%backup.log
  
  rem   
  rem     
  