How to Optimize System by Disk Defragment?

The performance of computer will be degraded after a long time of use. It’s a normal phenomenon because when run an application, it will leave a lot of fragment files and temporary disk files or cache files which is inevitably lead to decline the utilization of disk. Fortunately, this can be solved by regular cleaning up of disk defragment. To keep the computer running smoothly, we need also to remove junk files and cache files to optimize system.  Today our topic is How to optimize system by disk defragment.

 

The following batch can help us to clean system temporary files and useless log or backup files clean up automatically.

 

del /f /s /q %systemdrive%*.tmp

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

del /f /s /q %systemdrive%*.log

del /f /s /q %systemdrive%*.gid

del /f /s /q %systemdrive%*.chk

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

del /f /s /q %systemdrive%recycled*.*

del /f /s /q %windir%prefetch*.*

rd /s /q %windir%temp & md %windir%temp

del /f /q %userprofile%cookies*.*

del /f /q %userprofile%recent*.*

del /f /s /q %userprofile%Local SettingsTemporary Internet Files*.*

del /f /s /q %userprofile%Local SettingsTemp*.*

del /f /s /q %userprofile%recent*.*

 

After cleaning up the system we need to call the Defrag command to defragment the disk. To organize the disk on the C drive, for example, we simply execute command of:

 

C:>defrag c: -v -f > c:defrag.txt

 

The-f parameter is that if disk space is defragmented. -v argument is the status of the disk after finishing a detailed description of the results. Then I used the> symbol to redirect the results and will be compiled into a defrag.txt file to view.d

 

With these two command-line disk cleanup and disk defragment, we can plan to regularly perform the task automatically.

 

Alternatively, for inexperienced users, I recommend take an assistant tool to clean up junk file and defrag disk. For easy way, I suggest users take system optimization tool to complete the disk defragment. Just install Anvi Smart Defender and click care now, it will automatically optimize your system.

 

Anvi Smart Defender Download:

 

Social Share Toolbar
Leave a comment

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Are you human? Click the Banana...