Logs Cleaner Batch File
If you want to daily clean the server & applications logs then create below batch file to resolve repeated redundant deletion of logs task.
Steps:
1. Create blank file as name "LOGS_CLEANER.bat"
2. Copy below highlighted red contents and paste into newly created file in step-1.
:: Name : LOGS_CLEANER.bat
:: Purpose : To execute all 'Start of day' tasks
:: Author : Bhavin Patel
:: Revision : 11-Jun-2020 - Initial version
echo Hello %USERNAME%
echo deleting log files - DAILY_LOGS_CLEANER
del "C:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\AppSrv04\logs\server1\*.*" /s /f /q
del "C:\ECLIPSE_WORKSPACE\src\logs\*.*" /s /f /q
echo Done!
timeout /t 5
3. You can specify the path as per your working directory.
Comments
Post a Comment