- Code: Select all
if exist %DOWNLOAD_LOGFILE% (
echo.>>%DOWNLOAD_LOGFILE%
echo -------------------------------------------------------------------------------->>%DOWNLOAD_LOGFILE%
echo.>>%DOWNLOAD_LOGFILE%
)
if exist .\custom\InitializationHook.cmd (
echo %DATE% %TIME% - Info: Executed custom initialization hook ^(Errorlevel: %ERR_LEVEL%^)>>%DOWNLOAD_LOGFILE%
set ERR_LEVEL=
)
is responsible for this. The existence of the log file doesn't mean that it is writable...