In this article, we are learning how to clear cache memory using the windows scheduler.
First, you need to create a bat file for clear a cache memory.
Follow the below step for creating a bat file.
- Open notepad.
- Paste following code.
-
del /q "{{Temp File Path1}}\*" FOR /D %%p IN ("{{Temp File Path1}}\*.*") DO rmdir "%%p" /s /q
- Here you need to replace {{Temp File Path1}} to your temp file folder path.
- here you can add three folder path as cache folder.
- temp
- %temp%
- prefetch
- To get the folder path of the above list, just open run and enter the above list name one by one.
- Just copy and replace the folder path with {{Temp File Path1}}.
- You can add multiple folders, just copy above code 2 line and past in new line.
- Now save this file as .bat file, you can learn how to save the file as a .bat file.
- For creating the scheduler Please visit the link.
- Just change the file path with this article file.
Now it’s ready for use.
Thanks for visiting my blog.