Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
I fully agree with MR Darius Thaddeus Meneses
Yes, its possible through scheduled batch script. You can mention the folder and age for deletion and it will execute every two days from task scheduler. I'm copying helpful content for executing the same
REM Remove files older than30 days forfiles /p "C:\\Users\\YOURUSERNAME\\Downloads" /s /m *.* /c "cmd /c Del @path" /d -30
Remember to change the directory to match your computer. You can also choose any directory that is on your computer for the target. Once you have entered the string, save the document as a batch file.
Simply run the file to make sure it works and you will see that any files in your download folder are automatically sent to your Recycle Bin if they are older than30 days.
For the purpose of this example, we will schedule the automatic file deletion every seven days. Begin by opening the start menu and typing in “Task Scheduler” then running the application.
Alternatively, you can open your “Control Panel.” Under the “System and Security” section select the “Administrative Tools” option and then run the “Task Scheduler.”
Once you have the program open, click on the “Action” drop-down menu and select “Create Basic Task.”
You can give the task a name and description of your choosing. For this example, we will call it “Weekly Download Cleanup” and leave the description empty since the title is self-explanatory; then click “Next.”
From the “Trigger” section, we will choose to make the task a weekly action followed by pressing “Next.”
Now you will need to select a time and day. Remember to choose a time and day that your computer is powered on. For this example, we will just choose midnight on Friday then click next.
Now you will see the “Action” screen. We will leave this as is, since we want to run a specific program every Friday; so you can just click “Next.”
Now you will just need to click on “Browse” and select the batch file you created. As you can see, our batch file was saved on the desktop and is called “DownloadCleanup.bat.” Once you have done that, just click “Next.”
The last screen you will see gives you a comprehensive overview of the task you created. Once you verify that everything is right, just click “Finish” to complete the task creation and it will run automatically according to your specifications.
Now that you know how to schedule auto-deletion of your old files, you don’t need to worry about how to clear up any old files from your download folder.
Yes there is a utility called task runner where in you can assign a task along with deatils of time and task to be performed, this utility will be run as per the schedule. For eg:- Many institutes use this utility to run Auto Diskclean, Auto Antivirus Update and Auto Shutdown, etc... you just need to add task through task runner...
hi,
I think, You do need to write little dos command batch files for your need.
Use task schedule to delete it automatically per schedule
Download CCleaner, its a fast cleaning tool, yo can add it on your taskbar just right click then run ccleaner,
can Also automatically clean your computer every time you start your computer, open CCleaner>Options>Settings, And Just check "Run CCleaner when computer starts"