Use DOS commands to help you clean up disk garbage

  
        

After using the computer for a period of time, a lot of junk files and temporary files will be generated on the hard disk, which not only takes up hard disk space, but also slows down the computer. So we need to open the disk cleanup tool for cleanup. However, the layer expansion menu can open the disk cleaning, which is more troublesome. Today we will teach you a method. After a few simple steps, you can quickly clean up the disk with one click.

Open the "Run" window and type "CMD" and press Enter to open a command prompt window, then type "cleanmgr /sageset:1" at the prompt to create a disk configuration. The file will also pop up the Disk Cleanup Settings window. Here, select the temporary installation files, Internet temporary files, offline files, etc. that need to be cleaned up, and then click the <;OK" button to save the settings.

Next, right-click on the blank space in the desktop and select the “Shortcuts” command in the “New” menu in the pop-up menu. In the Create Shortcut Wizard window, prompt for the command. When you are in the line, enter "ldmg;cleanmgr /sageset:1" in the DOS prompt, and then press the wizard prompt to set the name and icon parameters for the shortcut.

Finally open the property window of the shortcut mode, switch to the "shortcut" label, position the mouse to the "shortcut key" input box, and then press the shortcut key you want to set on the keyboard. . After saving the settings, when you want to perform disk cleaning, you only need to press the shortcut key set on the keyboard to perform the cleaning immediately, without the user having to manually start it.

This article is contributed by the Starling Network!



Copyright © Windows knowledge All Rights Reserved