发表评论
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。
@echo off
rem write to log
set filename=deletefile.log
echo -------------------Delete Expired Log Files------------------------- >>%filename%
echo Start >>%filename%
echo (%date% %time%) >>%filename%
echo Delete the expired log files in D:\Users\Administrator\Desktop\2\1, Please wait... >>%filename%
forfiles.exe /p "D:\Users\Administrator\Desktop\SchoolDB" /s /m *.* /d -2 /c "cmd /c del @path"
echo End >>%filename%
echo (%date% %time%) >>%filename%
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。