Jump to content

Recommended Posts

Posted

Hi,

I want to delete all directories whose name starts with abc and are x days old. I am using forfiles as below but not getting output. Please help :

forfiles /p location /m abc* /d -x /c "cmd /c IF @isdir == TRUE rd /Q @path"

forfiles /p location /m abc.* /d -x /c "cmd /c IF @isdir == TRUE rd /Q @path"

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...