|
|
@ -151,7 +151,7 @@ FOR /F "tokens=2 delims= " %%A IN ('cscript %SystemDrive%\FWSUpdates\repository\ |
|
|
|
SET /A CHANGES=!CHANGES!+1 |
|
|
|
SET /A CHANGES=!CHANGES!+1 |
|
|
|
) |
|
|
|
) |
|
|
|
echo %DATE% %TIME% - Found %CHANGES% changes >> %SystemDrive%\FWSUpdates\status\sync_log.txt |
|
|
|
echo %DATE% %TIME% - Found %CHANGES% changes >> %SystemDrive%\FWSUpdates\status\sync_log.txt |
|
|
|
SET NOW=%DATE:~-4%%DATE:~3,2%%DATE:~0,2% |
|
|
|
FOR /F "delims=" %%A in ('cscript /nologo %~dp0\now.vbs') DO SET /A NOW=%%A |
|
|
|
|
|
|
|
|
|
|
|
reg add "HKLM\Software\FWS\Updates" /v PendingChanges /t REG_DWORD /d %CHANGES% /f |
|
|
|
reg add "HKLM\Software\FWS\Updates" /v PendingChanges /t REG_DWORD /d %CHANGES% /f |
|
|
|
reg add "HKLM\Software\FWS\Updates" /v PendingChangesList /t REG_SZ /d "%LIST%" /f |
|
|
|
reg add "HKLM\Software\FWS\Updates" /v PendingChangesList /t REG_SZ /d "%LIST%" /f |
|
|
@ -161,7 +161,7 @@ IF %CHANGES% GTR 0 ( |
|
|
|
IF ERRORLEVEL 1 ( |
|
|
|
IF ERRORLEVEL 1 ( |
|
|
|
reg add "HKLM\Software\FWS\Updates" /v ChangesAvailableSince /t REG_DWORD /d %NOW% /f |
|
|
|
reg add "HKLM\Software\FWS\Updates" /v ChangesAvailableSince /t REG_DWORD /d %NOW% /f |
|
|
|
SET /A SINCE=%NOW% |
|
|
|
SET /A SINCE=%NOW% |
|
|
|
SET /A MAX=%SINCE%+%MAX_REPORT% |
|
|
|
SET /A MAX=%SINCE%+%MAX_REPORT%*86400 |
|
|
|
) ELSE ( |
|
|
|
) ELSE ( |
|
|
|
FOR /F %%A IN ('reg query "HKLM\Software\FWS\Updates" /v ChangesAvailableSince') DO SET /A SINCE=%%A |
|
|
|
FOR /F %%A IN ('reg query "HKLM\Software\FWS\Updates" /v ChangesAvailableSince') DO SET /A SINCE=%%A |
|
|
|
SET /A MAX=%SINCE%+%MAX_REPORT% |
|
|
|
SET /A MAX=%SINCE%+%MAX_REPORT% |
|
|
|