@echo off :: current folder set dump_path="%CD%" :: time set max_days=1 :: remove all files forfiles -p %dump_path% -m *.* -d -%max_days% -c "cmd /c del /q @path" :: remove all directories forfiles -p %dump_path% -d -%max_days% -c "cmd /c IF @isdir == TRUE rd /S /Q @path"
%0
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)