I need to delete all files (recursively in all folders and subfolders) based on their last access time.
I was looking at Stack Overflow post Batch file to delete files older than N days that suggested this answer:
forfiles -p "C:\what\ever" -s -m *.* -d <number of days> -c "cmd /c del @path"
However, this deletes files based on last modified time, not last access time.
Also, is there a way to save the command in a script file so I can just doubleclick it to run?