top

Hcbb Script Auto Bat | Exclusive › |

:: Archive old logs %HCBB% archive --source C:\Logs --days 30 --destination E:\Archive if %errorlevel% neq 0 goto error

:: Check error level if !errorlevel! neq 0 ( echo ERROR: Failed to process %%f with code !errorlevel! >> %ERROR_LOG% ) else ( echo SUCCESS: %%f processed >> %LOG_FILE% move "%%f" "%INPUT_DIR%\Archived\" 2>nul ) ) hcbb script auto bat

:menu cls echo HCBB Automation Tool echo 1. Run Full Batch Process echo 2. Run Only Cleanup echo 3. Exit choice /c 123 /n /m "Select option: " if errorlevel 3 exit if errorlevel 2 goto cleanup if errorlevel 1 goto full_process Automatically create a new output folder for each day: :: Archive old logs %HCBB% archive --source C:\Logs