TechDaddy
No Result
View All Result
  • Home
  • Apps
  • Tech
  • Business
  • Internet
  • Automotive
  • Education
  • Lifestyle
    • Fashion
    • Health
    • Travel
  • Phones
  • Home
  • Apps
  • Tech
  • Business
  • Internet
  • Automotive
  • Education
  • Lifestyle
    • Fashion
    • Health
    • Travel
  • Phones
No Result
View All Result
TechDaddy
No Result
View All Result
Home Internet

How To Clean Your Windows Pc Using Command Prompt

by David
in Internet
windows pc using command prompt

How To Clean Your Windows Pc Using Command Prompt will be described in this article.

How To Clean Your Windows Pc Using Command Prompt

Table of Contents hide
How To Clean Your Windows Pc Using Command Prompt
Here are a few ways to clean up a slow Windows computer using Command Prompt.
How to Use the Disk Cleanup Utility via Command Prompt
Basic File Deletion
Cleanmgr/Sageset
Delete Files Automatically
How to Delete Prefetch Files Using Command Prompt
Keep your Clean from Junk Files Using Command Prompt
How to create a .bat file and add the command

In this article, you can know about How To Clean Your Windows Pc Using Command Prompt here are the details below;

If the storage space on your Windows PC is getting low, use these quick Command Prompt utilities to clear away the clutter.

Clearing up clutter from your computer can boost efficiency and free up a ton of storage. A number of built-in system cleanup tools, including the Disk Cleanup utility, are included with Windows. Nevertheless, using the Command Prompt is a lesser-known method of cleaning your computer.

Here are a few ways to clean up a slow Windows computer using Command Prompt.

Cleaning up your PC is quite simple with Windows 10’s Disk Cleanup feature. You can manually erase any leftover undesirable files. For instance, emptying the temporary folder. Commands to use the Disk Cleanup program will help you expedite this operation.

How to Use the Disk Cleanup Utility via Command Prompt

How to Use the Disk Cleanup Utility via Command Prompt

A built-in Windows tool called Disk & the Cleanup can assist making space computer’s hard disk. Downloads, temporary internet files, recycle bins, and system files can all be cleaned out using it.

You may start Disk Cleanup & the carry out automated cleanup actions right from the Command Prompt. The utility and its available command-line switches can be used as follows. Also check EGERP Panipa

Basic File Deletion

To use Command Prompt to launch the Disk Cleanup program, use the cleanmgr command. How to utilize it:

Type cmd search box to launch Command Prompt with administrator rights. Then, right-click on the prompt and select “Run as administrator.” Enter cleanmgr after typing it.

Also READ  30 Best MangaTX Alternatives To Read Manga Online

Basic File Deletion

Choose the drive you wish to the clean up and click OK in the Drive Selection window.

In the Drive Selection window, select the drive you want to clean up and click OK.

Next, choose every file you wish to remove from the Disk Cleanup box and click OK. There are additional cleaning choices available in the disk clean-up section if cleanmgr is executed with administrator capabilities.

Disk Cleanup window

To complete the procedure, click Delete Files at the end.

Cleanmgr/Sageset

How to Use Command Prompt 7 to Clean Your Windows Computer

By using this command, the Disk Cleanup settings window is displayed instead of the drive selection step. You can choose which files to the remove from this point forward.

Delete Files Automatically

Use the command cleanmgr /sagerun to let the Disk Cleanup tool choose which files to remove. When it runs, it will check your drives and remove unnecessary files from your computer.

Open Command Prompt as administrator

If your hard drive is getting low on storage space, you can use the low disk switch. By default, it checks every file category when it is executed.

 

To delete the prefetch files

Disk Cleanup will launch with all trash file categories from the D: drive selected when it is run.

Use the following command instead if you want to swiftly remove all garbage files without prompting the user: where d stands for the drive’s low storage letter.

Any temporary files that are older than seven days are cleaned up by the Disk Cleanup tool. However, you can utilize the Command Prompt or do it manually if you need to clean the temp folder on a regular basis. Also check How To Configure SSH Keys Authentication

The temp file can be removed manually from File Explorer by selecting Ctrl + A > Delete, or it can be removed with the following command:

typing Notepad in the search box

Any file that is presently open will be automatically skipped by Command Prompt, but the remaining files will be deleted.

How to Delete Prefetch Files Using Command Prompt

Prefetch files are temporary files that your Windows system creates when you execute an application. These files include data that helps to maximize how well programs run.

Also READ  Top 34 Official MangaSY Alternatives In 2024

Prefetch files often don’t use up much space on your hard drive, much like other temporary files. Nonetheless, you can utilize the Command Prompt to clear off prefetch files from your system if you need to do so often.

Prefetch files can be removed with the Command Prompt:

Open the Administrator Command Prompt.

How to Use Command Prompt 12 to Clean Your Windows Computer

Press enter after using the following command to remove the prefetch files:

How to Use Command Prompt 13 to Clean Your Windows Computer

Keep your Clean from Junk Files Using Command Prompt

The Command Prompt allows you to carry out a number of sophisticated tasks, such as cleaning your computer of unnecessary files. Even though the GUI-based Disk Cleanup application is available, cleaning up particular category files and wiping clean disks is made simple with Command Prompt.

Additionally, you may combine these instructions into a.bat file and execute them all by just clicking the file with administrator rights.

How to create a .bat file and add the command

Enter Notepad into the search box to launch Notepad. This will cause a text file to open blank. Put each command one at a time on separate lines in this empty text file.

To save the file, select File > Save As. Enter any name you like, and then make sure the extension is.bat. I’ve inserted simply two commands here for demonstration purposes. There are plenty more that you can add. One by one, the commands will be carried out.

save as to save the file

You’ll get test.bat on your desktop as a result. Now, all you have to do is double-click the.bat file to start the commands, and they will run sequentially whenever you want to. To maximize the effectiveness of the disk cleanup procedures, make sure you right-click the file and choose “run as administrator.”

Related Posts

Manga Z alternatives
Internet

Top 20 Official Manga Z Alternatives In 2024

July 4, 2024
manga18fxalternatives
Internet

34 Official Manga18FX Alternatives In 2024

July 4, 2024
Handwriting Fonts
Internet

20 Best Handwriting Fonts In Word 2024

July 4, 2024

Latest Posts

  • Top 20 Official Manga Z Alternatives In 2024
  • 34 Official Manga18FX Alternatives In 2024
  • 10 Ways To Maintain Consistent Project Quality
  • 20 Best Handwriting Fonts In Word 2024
  • What Is Polkadot Crypto Is It a Good Investment?
  • Top 34 Official MangaMan Alternatives In 2024
  • Top 13 Gantt Chart Software Of 2024 (Free & Paid)

Popular Articles

  • 21 Sites Like Youngtube In 2024
  • 5 Hiren BootCD Alternatives In 2024
  • Top 10 Best Websites Like Bestgore For Horror Movies
  • Top 30 Best Websites like 123Movies For Streaming Movies
  • 11 Sites Like Filecr In 2024
  • YesMovies Alternatives 26 Sites Watch HD Movies Online
  • Top 10 Best YouTube to WAV Converter Free Downloader
  • Top 23 Official Hdrezka Alternatives In 2024
  • Top 10 Best Online Writing Services In 2024
  • 15 Best Sites to Receive SMS Online for Verification
  • Write For Us
  • Contact us
  • TechBlitz

TechDaddy © Copyright 2021, All Rights Reserved. TheMagazine

No Result
View All Result
  • Home
  • Apps
  • Tech
  • Business
  • Internet
  • Automotive
  • Education
  • Lifestyle
    • Fashion
    • Health
    • Travel
  • Phones

TechDaddy © Copyright 2021, All Rights Reserved. TheMagazine

Go to mobile version