I need to automate deletion of folders..
Tried running this file from command prompt:
forfiles /p c:\Backup /s /m *.* /d -7 /c "cmd /c del @file"
This just attempts to delete files inside directory Backup but leaves the subdirectories intact. How do enable deletion of directories itself through this command?
Please help.
Tried running this file from command prompt:
forfiles /p c:\Backup /s /m *.* /d -7 /c "cmd /c del @file"
This just attempts to delete files inside directory Backup but leaves the subdirectories intact. How do enable deletion of directories itself through this command?
Please help.