Can't delete files automatically using windows 10 Settings

Hello,

Any ideas if we can run a script or bat file to clear automatically the files after a time in the download folder.

We did this settings in the local computer but it doesn't work.
We are using Windows 10 OS

Pc Auto File Delete Settings
wcgplcAsked:
Who is Participating?
 
JohnBusiness Consultant (Owner)Commented:
You can run it via Task Scheduler and set it monthly.
0
 
McKnifeCommented:
I wonder why that setting wouldn't work. Well, take delage32 http://www.horstmuc.de/wbat32.htm it is easy.
If you prefer something built-in, take forfiles.exe and learn the syntax.
1
 
JohnBusiness Consultant (Owner)Commented:
Is it possibly working and you have not waited the 30 days?  New temporary files are created daily, so check the dates on some files to see.

Also, click on Cleanup Now and allow it to complete, then restart the computer and check in due course if files are remaining when they should not.
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
Bill PrewCommented:
but it doesn't work
Can you expand on this a bit?  How did you "test" it?  What files did you create, etc?  And was this test of the automatic deletions, or does it also not work when you use the "clean now" button?


»bp
0
 
wcgplcAuthor Commented:
The clean now deletes everything apart from what is in the downloads folder

it has only been activated today so not 30 days yet.
0
 
JohnBusiness Consultant (Owner)Commented:
I use Disk Cleanup instead.  

Try running Disk Cleanup, and set all the options for removal. Run it, restart, go back and check. Did the options stick. They do not always and that would explain what you see.

Run Disk Cleanup again, and this time, click on Clean up System files. Select all options and allow to run. Now restart and check. All Cleanup option should be selected.

Now see if the Settings options work properly.

It is just an anomaly in how Disk Cleanup works.
0
 
wcgplcAuthor Commented:
can I set the Disk Cleanup to run automatically every month because that is what we are looking for?
0
 
McKnifeCommented:
delage would be the simplest solution, but if you prefer cleanmgr.exe, look at http://www.thewindowsclub.com/automate-disk-cleanup-utility-windows for a tutorial.
0
 
JohnBusiness Consultant (Owner)Commented:
Thank you and I was happy to assist.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.