Home > Article > Computer Tutorials > How to delete hibernation files in Win7 system
php Xiaobian Yuzai will introduce to you how to delete hibernation files in Win7 system. Hibernation files are automatically generated when the system enters hibernation state and occupy hard disk space. If you don't use hibernation often, consider deleting these files to free up hard drive space. It's easy to delete hibernation files, just follow the steps below.
Hibernation file is an important part of Windows 7 system, which allows users to put the computer into hibernation state to resume work later. However, sometimes we may need to delete these hibernation files to free up disk space or solve some problems. This article will introduce how to delete hibernation files in Win7 system.
The hibernation file is a hidden system file. It is located in the root directory of the system partition and the file name is "hiberfil.sys". To delete hibernation files, you need to be logged into your computer as an administrator.
Here are the steps to delete hibernation files:
Step 1: Open Command Prompt Click the "Start" button and enter "cmd" in the search bar. In the search results, find "Command Prompt" and right-click it. Select the "Run as administrator" option. This will open a new command prompt window.
Step 2: Disable hibernation In the command prompt window, enter the following command and press Enter:
powercfg -h off
This command will disable hibernation function and delete hibernation files. Please note that by disabling hibernation, you will not be able to use your computer's hibernation mode.
Step 3: Re-enable hibernation (optional) If you want to re-enable hibernation in the future, you can follow these steps:
In the command prompt window, enter the following command and Press the Enter key:
powercfg -h on
This command will re-enable the hibernation function and recreate the hibernation file.
Step 4: Delete the hibernation file In the command prompt window, enter the following command and press Enter:
del C:\hiberfil.sys
This command The hibernation files located in the root directory of drive C will be deleted. If your system partition is not the C drive, please replace "C" in the command with the drive letter of your system partition.
Step 5: Close the Command Prompt After you finish deleting the hibernation file, you can close the Command Prompt window.
Please note that deleting hibernation files may cause you to lose unsaved work that was saved while your computer was in hibernation mode. So before performing these steps, make sure you have saved all your important work.
Deleting hibernation files in Win7 system can help you free up disk space or solve some problems. You can easily accomplish this task by disabling hibernation and deleting the hibernation file. But remember, before following these steps, make sure you have saved all your important work.
The above is the detailed content of How to delete hibernation files in Win7 system. For more information, please follow other related articles on the PHP Chinese website!