SyntaxFix
Write A Post
Hire A Developer
Questions
For windows 2012 R2 the following would work:
forfiles /p "c:\FOLDERpath" /d -30 /c "cmd /c del @path"
to see the files which will be deleted use this
forfiles /p "c:\FOLDERpath" /d -30 /c "cmd /c echo @path @fdate"