One-click cleaning of C drive junk files through simple code in Windows system

1. Create a new txt text on the desktop, as shown below:

2. Open the newly created text document and enter the following code;

cleanmgr /sageset:99

cleanmgr /sagerun:99 /autoclean

3. Enter the above code and save, as shown below:

4. Then rename the newly created text document to C Disk Cleanup, and the text suffix is ​​bat, as shown in the figure below:

5. Then the following picture will appear;

 

 6. Click Yes, the following picture appears:

 7. Click and check all (deleted files have no effect on system operation), click OK

 8. It will automatically delete the checked files

   This is the end of the sharing of this article, thank you for your likes and attention!

Guess you like

Origin blog.csdn.net/bc_1024512/article/details/130014524