Followed the question: https://stackoverflow.com/search?q=Batch+file+to+delete+files+older+than+N+days -
I changed it in order to work in another machine that has windows XP:
forfiles -p"%%~a" -s -m*.* -d%days% -c"cmd /c if /i @isdir==true echo Deleting... @path & echo @path>>C:\Jobfolder\Folders_that_deleted.txt & rd /s /q @path"
and it is not working.