cd C: Users usename of AppdataLocal system
rmdir / S / Q Temp
Save the file with the name cleantemp.bat . Please note: when you save the file you should select the All Files option in the Save as Type section .
- Double-click the file cleantemp.bat just created to delete the temporary files of the system.
If you want the system to automatically delete temporary files after each startup, do the following:
- Right click on the file cleantemp.bat just created, select Create shortcut .
- Put the shortcut you just created into the Startup folder in the Start menu.
Now, after each login to the system, the temporary files will be automatically deleted.
2. Disable creating Dump file to save hard drive space
When your computer has problems, the system will create dump files. From these dump files you can diagnose the cause of those problems. However, these dump files are not really necessary for you and it will occupy a lot of hard drive capacity because each time there is a small error it also creates such files. To be able to disable the creation of dump files you can follow the instructions below;
- Click Start Control panel . Then enter Advanced in the search box
- Click View advanced system settings (as shown above)
- Click the Setting button in the Startup and Recovery section of the System Properties dialog box
- Select none in the Write debugging information section of the Starup anh Recovery dialog box. Click Ok to finish, so you have saved a considerable amount of hard drive space.
3. Schedule disk defragmentation
Disk defragmentation helps you access data on your drive faster. Setting up a disk defragmentation schedule is essential for the system. The following guide will help you do this
- Click Start , enter defrag and click Disk Defragmenter .
- Click the Configure schedule button in the Disk Defragmenter dialog box.
- In Disk Defragmenter dialog box : Modify Schedule , you set the schedule in Section Frequency, Day, Time . Besides, you choose to change the disk to be defragmented in the Select disks section . Then click OK to finish.
At this point, the scheduling task for defragmenting is complete, your drive will be defragmented regularly to ensure quick access to the data.