bassi2402 Posted July 23, 2014 Posted July 23, 2014 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"
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now