pushd "%HCBB_PATH%" hcbb.exe /auto popd
:LogEnd echo [%date% %time%] HCBB Auto Script Completed successfully >> %LOG_FILE% goto :eof hcbb script auto bat
rem --- rotate old logs --- forfiles /p "%LOG_DIR%" /m *.log /d -%KEEP_LOG_DAYS% /c "cmd /c del @path" >nul 2>&1 pushd "%HCBB_PATH%" hcbb
Allow your script to accept command-line arguments: let’s dissect it:
To understand the keyword, let’s dissect it: