I am trying to make a program that deletes files that were deleted a certain number of days ago from the recycling bin. I know there is a simple way to empty the recycling bin with winshell, but I only want to delete older files. I know there is a simple way to do this in normal folders, but I don't know how to get the path without unhiding protected operating system files (which I don't want to do).
How can I do this?
Ended up coming up with this solution, it does require error handling if you are trying to restore or delete certain files such as Desktop shortcuts. I am still open to finding a better solution.