How to Clean Computer Commands

By TS Jordan

Executing regular commands to "clean" your computer's hard drive will keep your PC functioning well long after its purchase date. These built-in commands include the Disk Defragmenter and the Disk Cleanup utility, both of which will help to reorganize and remove excess files from your hard drive in the pursuit of keeping your computer as functional as possible.

Click "Start" and select "Run."

Type in "cmd" and press "Enter" to bring up a command line prompt.

Type "defrag c:" and press "Enter." This will defragment your hard drive.

Click "Start" and select "Run."

Type "Cleanmgr.exe" and press "Enter" to run the disk cleanup utility. This will clean out unnecessary files from your computer's hard drive.

×