fregoton
Jul 22, 2014, 03:51 AM
Hi,
I was searching an answer for this question but I was only able to find this batch code that deletes files but not folders is there any way I can also delete folders in a specific date in a windows directory.
Echo OFF
ECHO
forfiles /p C:\Temp /s /m *.* /d -30 /c "cmd /c del echo FILE"
EXIT
I was searching an answer for this question but I was only able to find this batch code that deletes files but not folders is there any way I can also delete folders in a specific date in a windows directory.
Echo OFF
ECHO
forfiles /p C:\Temp /s /m *.* /d -30 /c "cmd /c del echo FILE"
EXIT