Disk Cleanup Command Code

Computer cleanup garbage run command code

Computer cleanup garbage run command code is how much? Whether it is Win7, Win10 and other systems or desktop, laptop and other equipment, used for a long time not to clean up the garbage will make the computer run slowly, so regularly clean up the computer garbage is very necessary, so today I come to tell you specifically about the computer clean up garbage running command code operation tutorials, there are interested in the little ones can look at it oh.

Click to: win11 system

Computer cleanup garbage running command code

Method one:

1, use the keyboard key combination [win + R], enter [CMD] click enter;

2, in the bottom of the input [cleanmgr] click enter;

3, in the pop-up [[disk cleanup: drive selection], click enter;

3, in the pop-up [[disk cleanup: drive selection], click enter. Disk Cleanup: Drive Selection] box according to their own needs to select the system disk;

4, select the [files to be deleted] click [OK] can be.

Method 2:

1, right-click on the desktop blank space, select [text file];

2, after opening the text file;

3, copy the code



echo is cleaning up the system garbage files, please wait ……


del/f/s/q%systemdrive%\. _mp




del/f/s/q% systemdrive%\.old










echoCleanup system garbage complete!


4, paste to a text file;

5, click on “Save As”;

6, change the file name to system garbage cleanup.bat;

7, double-click to run the “system junk cleanup.bat”;

8, at this time you can press any key;

9, cleanup began;

10, appeared “system garbage cleanup is complete” can be.

The above is the small make-up for you to bring the computer to clean up the garbage running command code of the two methods, these two are very simple to use, I recommend the use of the first, I hope to help you.

How to use DOS commands to quickly clean up your disk

Computers generate a lot of temporary files, various junk files and slow down over time.

To make your computer run fast, you need to clean the disk from time to time.

Today, I’d like to share with you a quick and easy way to clean up your disk.

Tap Start, in the Search Programs and Files box, type “CMD” (Figure 1), enter to open the window, in the command window, type “cleanmgr/sageset:1” (Figure 2), press Enter (enter). enter).

After pressing enter, the Disk Cleanup Settings window will automatically appear, tap the various files and items that need to be cleaned up, and click “OK”.

With the right mouse button on the desktop, select “New” “Shortcut”.

In the open window box, type “cleanmgr/sageset:1”, then select “Next”, “Finish! “Finish” to complete the creation of the shortcut. (The name of my shortcut is cleanmgr ….) You can name it whatever you like, click Finish, and there will be a “small brush + hard disk” icon on your desktop.

Click the right mouse button on the cleanup shortcut you just created, select Properties, and click on the Shortcuts tab. Tap the “Shortcuts” box and set a shortcut. Save the settings so that you can clean the disk at any time with a single click!

How to clear the cache by typing cmd inside the computer’s runtime

1, click on the “Start” button on the bottom left corner of the computer.

2. Find and click to open the “Run” box.

3, type “cmd”, click “OK”, open cmd command box.

4. In the cmd command box, enter the command to flush dns cache: “ipconfig/flushdns”.

5. After the input is complete, press the Enter key and the “Flush DNS Resolution Cache” prompt will appear, which will complete the cache clearing operation.

How to clean Win10 PC command code (How to clean too much junk before being thorough)

Windows system has been used for a long time. Why does it always make people feel that it is running slower and slower?

Because we seldom clean up the garbage on the system disk c disk, so as soon as we turn on the computer, we are busy with office, study or entertainment. In the process of using the computer, the accumulated cache and junk files constantly occupy the computer disk space, resulting in the computer becoming more and more bloated.

It’s not until the computer is visibly stuck that it knows it’s time to clean up the junk files. But the question is, with so many files on your computer, which ones are OK to clean?

Here are three simple steps to clean up your c-drive. It only takes 3 minutes for a busy partner.

The first step is to clean up the system’s temporary files and windows.old files left behind by windows upgrade.

Meanwhile, press the key, open the run window, type quot%temp%quot and press enter. Temporary files of the system are stored here.

For example, web browsing history, various favorites, temporary files left in the work when installing software, etc.. All are junk files and can be deleted.

However, a large amount of cached garbage will be deleted and a popup window will appear. You can check quotDo this for all current projectsquot and click Skip.

Next, clean up the windows.old file. after windows upgrade, the old system files will be put in the windows.old folder, in order to prevent the system from bugs and other problems after the upgrade, and make it easy for users to roll back to the previous version of windows.

If the system has been installed and used for a few days and no problems are found, you can clean up this file as it takes up about 10G. The operation is shown as follows:

Open this computer, right-click on drive C and select properties to open Disk Cleanup.

Find the quotPrevious windows installationsquot option, check it and click OK to clean it up.

Step 2: Clean up the downloads folder and files regularly and move large files to other partitions.

Open this computer and click quotDownloadsquot in the left column of the window. Here are some things downloaded from web pages, including software, documents, videos, etc. And delete unnecessary files. For example, the downloaded software installer is useless after installing, clean it up and free up space.

If there are important downloaded files, you can move them to a partition bigger than c disk, such as D disk. The system desktop is the same, its path is also on the c drive, so don’t don’t put too big files on the desktop.

Step 3: Clean up hibernation files.

With hibernation enabled, the system can save all data currently in memory to the hard disk and power off. When powering on again, it can quickly return to the state before powering off, avoiding the complicated process of booting up and loading.

But the generated hibernation file will be very large, sometimes up to 10G capacity, taking up a lot of space. Please clean it up quickly.

Meanwhile, the keystroke opens the operation by typing quotcmdquot and pressing enter to open a command prompt window.

Type quotpowerCFG-hoffquot; command and press enter to turn off the hibernation function, the hibernation file will be deleted automatically.

Finally empty the Recycle Bin! so that today it is here to share. Follow the above method, how much garbage your computer cleaned up?

King’s Heart 2 click to try it out

What are the commands of CMD for computer?

Computer cmd commands a complete list of

CMD role:

Mastering some basic cmd commands can quickly complete some basic operations, and in daily life can also efficiently complete a variety of tasks.

Open Command Prompt

1, start/run/type cmd or command;

2, window+r/type cmd or command.

Shutdown Related





Cancel shutdown:shutdown/a;

Timed shutdown:shutdown/s/t1024 (1024 for seconds).

Switching directory related

New folder:mdtest;

Return to root directory:cd\;

Display the current directory location:cd;

Display the current directory location on the specified disk:cdd:;

Display the list of files in the directory:dir;

Display the directory structure. treed:\test.


Testing network latency and packet loss:pingip/domain.

Ping test 5 times:pingip/domain-n5.

Common tools

1, calc start calculator;

2, cmd.exe to see the version of cmd;

3, mspaint drawing board;

4, magnify magnifying glass, i.e., the win key + the plus key;

5, notepad to open notepad;

6, osk to open the on-screen keyboard;

7, write writing pad;

8, chkdsk.exe disk check;

9, cleanmgr to open the disk cleanup tool;

10, diskmgmt.msc disk management;

11. devmgmt.msc device manager;

12. dxdiag to view computer information;

13. dcomcnfg to open the system component services;

14. explorer to open file management;

15, eventvwr event viewer;

16, eudcedit word builder;

17, fsmgmt.msc shared folder manager;

18, lusrmgr.msc local users and groups;

19, msconfig.exe system configuration program;

20, netstat-an-(TC) command to check the interface;

21, sfc.exe system file checker;

22, utilman to open the auxiliary settings.