When using the computer for a long time, there will be a lot of junk files in the operating system. Although the system itself has settings to automatically clean up some garbage, this ability is in Guo Degang's words, "the ability is general, the level is limited", and if If we need to clean it ourselves, it will waste a lot of time to sort out. Is there any way to set up a bat to automatically clean up the junk files every time it is turned on?
The following mainly introduces how to set up temporary files for automatically deleting Windows 10 system. These files are usually placed in the C:\\Users\\username\\AppData\\Local\\Temp folder, where files and folders can be safely deleted (as long as there are no currently running tasks). To get into the temp folder, there is a shortcut: enter: %tmp% and press Enter.
Using this shortcut, we can make a temp delete the contents of a batch file, as follows:.
@echo off del "% tmp% \\ * * " /s /q /f FOR /d %%p IN ("%tmp%\\*.*") DO rmdir "%%p" /s /q
Copy and paste the above text into Notepad and save as The .bat file can be used, and the file name is self-explanatory. Then you can move to the "Start" folder (running "Run: "shell: Startup" can be entered), so that the system is clean after each boot; can also be set as scheduled tasks, timing clear.
Photo caption: Save the file as a .bat
Caption: execution in operation: shell: Startup
Caption: Add to & ldquo; Start & rdquo; Folder < Br>
If you don't have time to manually create a file, you can also download the system directly to make a good file: network disk download
Of course, the commands mentioned above are only unilateral cleaning effects, if you want To thoroughly clean up junk files, you can refer to "How to clean up system garbage with one click? The code in .
Win10 store application default installation location C disk how to modify? I believe that many Win1
Xiaobian upgraded win10 a few days ago, and found that other browsers except the edge can not access
win10 14393.187 update fixes which bugs Patch code is KB3189866, upgrade, Windows 10 system version
Want to use Microsoft biometric function, in addition to installing Windows10, you need hardware tha
Steps to uninstall the application under Win10 system
Baidu win10 through train detection system language must be a simplified Chinese solution
How to close the win10 test mode?
Can pirated windows be upgraded to win10?
How win10 uses local group policy to protect privacy
How does the Win10 system not download the app from the app store?
When the Win10 app store downloads, it prompts "What is the maximum number of devices?"
Win10 installs KB3105208 patch blue screen of death solution
Win10 technology preview can not run Tencent games how to do? After the
Win8.1 upgrade Win10 system tutorial
How to uninstall the application downloaded from the win10 app store
How does Win10 transfer my document profile
How to create a shutdown tile on Windows 8 for fast shutdown
Win7 64-bit Ultimate System Open and Close Window Transparent Settings
Win7 computer search function failure file search does not come out how to do
Several reasons and solutions for decomposing the blue screen of xp system
IIS installation method introduction and analysis of unsuccessful installation reasons
Microsoft will stop Edge and IE11 RC4 password support in April
What can I do if the file cannot be dragged in win8/win8.1?
The virtual optical drive software
Windows 10 Build 14267: Add cloud backups such as start screen layout