How can I remotely delete subfolders older than x days? Was able to find a syntax like this, but it deletes all of the subfolders in xFOLDER. Any idea how I can modify the syntax and delete only subfolders in xFOLDER older than 7 days?
FOR /D %i IN (\\IP ADDRESS\FOLDERA\FOLDERB\FOLDERC\FOLDERD\xFOLDER\*) DO RD /S /Q "%i"
DEL /Q \\IP ADDRESS\FOLDERA\FOLDERB\FOLDERC\FOLDERD\xFOLDER\*.*