Hello, thank you for this practical project
For the first time, when I disable Hibernate, the iberfil.sys file is not deleted, and after restarting Windows, and open optimizer Deactivate/Active hibernate the hiberfil.sys file is deleted.
I have a suggestion for this section, do you think it is practical?
powercfg -h off
if (Test-Path C:\hiberfil.sys) {
del /f /q C:\hiberfil.sys
Write-Host "Hiberfil.sys file deleted successfully."
} else {
Write-Host "Hiberfil.sys file does not exist."
}
Hello, thank you for this practical project For the first time, when I disable Hibernate, the iberfil.sys file is not deleted, and after restarting Windows, and open optimizer Deactivate/Active hibernate the hiberfil.sys file is deleted.
I have a suggestion for this section, do you think it is practical?
powercfg -h off if (Test-Path C:\hiberfil.sys) { del /f /q C:\hiberfil.sys Write-Host "Hiberfil.sys file deleted successfully." } else { Write-Host "Hiberfil.sys file does not exist." }