Hi Sudhir,
I noticed your question and remembered that we worked on this question already.
Here is what I implemented on my windows environment.
I created a file 'cleanup_clilog.bat' (based on cleanup.bat):
'@echo OFF
rem %~dp0 is expanded pathname of the current script under NT
set CAWA_HOME=%~dp0..
if {"%1"} == {"--help"} (
echo "The cleanup_ccilog functionality will purge CLI log files"
echo "Usage: cleanup_ccilog.bat <number of days older files need to be deleted>"
goto :END
)
if {%1} == {} (
echo "Please enter the argument - <number of days older files need to be deleted>"
goto :END
)
forfiles -p "%CAWA_HOME%\logs" -s -m Clilog.* -d -%1 -c "cmd /c del @path"
:END
I added in my housekeeping application a job called CLEANUP_CLILOGS (copied job CLEANUP_TRACELOGS) and modified it to submit 'cleanup_clilog.bat'.
Regards,
Eric