Thursday, December 16, 2010

Remove all logs

Here is a script that deletes all logs in a specified directory. It's very short but still handy (I tend to recreate it over time)


SET INDIR=C:\Temp
del /S /Q %INDIR%\*.log
FOR /R %INDIR% %%I IN (Log,Logs) DO rd %%I /q /s

No comments: