Handling win7 C disk space shrinking method

  
First, deep analysis and perfect solution
1, hiberfil file hiberfil.sys:
The file in the root directory of the C drive is hidden system files, hidden this hiberfil.sys file The size is exactly the same as your own physical memory. When you put the computer into hibernation, Windows 7 writes all the memory contents to the Hiberfil.sys file before shutting down the system. Then, when you turn the computer back on, the operating system uses Hiberfil.sys to put all the information back into memory and the computer is restored to its pre-closed state. Windows 7 does not delete this file, but keeps it on the hard disk, which will take up a portion of the disk space. With the sleep function, you can choose the sleep function, and the team will shut down the hard drive. It takes up space and has to read and write hard disks frequently. The assassin's t61 is just four more G space. Windows 7 safely delete the hibernation file method: Run cmd.exe as the administrator to open the command line window, then run: powercfg -h off, note that the hidden hiberfil.sys file on the C drive can be unhidden and deleted directly. .
2, virtual memory pagefile.sys:
Windows system, including Windows 7, the default setting of physical memory 1.5 times the size, as a page swap file, if you are the size of the system management, then this volume is automatically changed Often, it is getting bigger and bigger. If your physical memory is relatively small, only 512m or 1g, you can choose to keep this file. If you keep this file, we recommend that you put it in another partition, not with the C drive (system disk), otherwise, you will need to manually delete it when you do Ghost or other backups. It is recommended that you specify the size and specify 1.5 times the Ram physical memory size. If your memory is above 2G, we recommend that you turn off the virtual memory function directly, and you will find that your entire Windows system is "flying".
Setting the virtual memory method: Control Panel - Click on the system in the classic view, click on the advanced system settings on the left, click on the first setting (performance), then click on Advanced, in the virtual memory, click on Settings.
Note that the hidden filefile.sys file of the C drive can be unhidden and deleted directly.
3, the application cache brought by the Superfetch function:
In the Windows 7 system, the technical characteristics of Vista Superfetch are used. For details, please refer to: Windows WIN7 SuperFetch/Prefetch technology detailed explanation, teach you how to set WIN7 boot Read-ahead and application pre-read these two articles.
Clean up method: directly delete the files in the c:windowsprefetch folder.
4, temporary files generated by the application:
Generally saved in the windowstemp folder, and the temp folder of the user folder
Cleanup method: directly put c:windowstemp and C:Users your users All files in the AppDataLocalTemp folder can be deleted.
5, IE and other browser generated temporary files:
cleanup method: control panel Internet options, delete cookies and IE temporary files, especially in the backup system is best to remove the clean.
6, System Restore, System Volume Information folder:
System Volume Information folder, Chinese name can be translated into "System Volume Information". This folder stores the backup information of the system restore. "System Restore" is one of the most useful features of the Windows operating system. It uses the "snapshot" method to record the status information of the system at a specific time, which is called "restore point", and then in need Restore it based on this information.
There are two types of restore points:
one is automatically created by the system, including system checkpoints and installation restore points; the other is created by the user himself or herself, also called manual restore point. As the user's use of the system time increases, the number of restore points will increase, resulting in less and less hard disk space, and finally be warned "Insufficient disk space”. It is also the most easily occupied file in the system disk. For a long time, this file size can reach 4G or even larger!
7, the system file generated by the automatically upgraded patch package new backup
Recommended this You don't have to move, keep it best. If you want to delete it is also possible
8, Windows 7 system log and event log
Generally in the Windows folder under the System32 folder LogFiles folder, directly delete the ok
9, NTFS The partition can be compressed, and you can choose to ignore it all.
Once all the software is installed, only use 7G more
Second, C disk space LJ automatically clear, expand C disk space
@echo off
echo is helping you to clear the system LJ file, please Wait a moment...
echo this tool is modified by aznmv3
del /f /s /q %systemdrive%*.tmp
del /f /s /q %systemdrive%*._mp< Br>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%*.bak
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*.*"
echo clear system LJ complete!
echo. & pause
You can save the above code as a clean.bat, run directly can.

Copyright © Windows knowledge All Rights Reserved