I have a batch script to delete files in a given folder:
@echo off :: set folder path set dump_path=C:REPORTSTEMP :: set min age of files and folders to delete set max_days=0 :: remove files from %dump_path% echo "REMOVE FILES " %date% %time% >>C:REPORTSLOGBATCHlogfile.log forfiles -p %dump_path% -m *.* -d -%max_days% -c "cmd /c del /q @path && echo @path>>C:REPORTSLOGBATCHlogfile.log" echo "END REMOVE FILES " %date% %time% >>C:REPORTSLOGBATCHlogfile.log
How can I extend it to remove files from subfolders?
1.4m articles
1.4m replys
5 comments
57.0k users