hellzerg / optimizer

The finest Windows Optimizer
GNU General Public License v3.0
14.47k stars 950 forks source link

Hibernate #417

Closed MEHDIMYADI closed 11 months ago

MEHDIMYADI commented 11 months ago

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." }

hellzerg commented 11 months ago

I don't think it will be good idea to delete the sys file like this. I will examine it better.

hellzerg commented 11 months ago

Unfortunately, it is not safe to delete this file from third-party apps, So I will leave it as it is.