How to achieve windows timing to clean files in the specified folder

  
                                                                                                                                                                                         

In many cases, we need to periodically clean up the files in a file, such as temporary cache files in the windows
system. If these files are manually deleted and cleaned each time, it will be We bring a lot of unnecessary trouble, then is there any way for windows
to automatically clean up the contents of the folder?

The method is definitely there, here we need to make a bat batch file, and then through the windows task plan to achieve regular cleaning of the contents of the specified folder.

The method is very simple, you only need to copy the following code to the folder and save it as a batch file.

DEL /F /A /Q /S \\\\?\\"E:\\IIS Temporary Compressed Files"

The red part is the directory path where you need to clean the folder regularly. Br>

After making the bat batch file, open the windows task plan and set a time you need to complete the task.

If you don't use the Windows Task Plan, please Baidu or Google, they are the best teachers for us to learn network
knowledge.



Copyright © Windows knowledge All Rights Reserved