Link to home
Start Free TrialLog in
Avatar of Luis Diaz
Luis DiazFlag for Colombia

asked on

Windows batch & CMD: remove files based on date withtout drill down

Hello experts,
I have the following command which allows me to remove files based on date:
ForFiles /p "C:\FolderName" /s /d -30 /c "cmd /c del @file"

Open in new window

.
I want to have the version without drill down mode.
Thank you in advance for your help.
SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Luis Diaz

ASKER

Thank you. I will test it soon.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It works, thank you very much for your help.