This commit is contained in:
Serge
2024-03-31 11:54:56 +02:00
parent 822391c98f
commit efa2f0760a
2 changed files with 30 additions and 4 deletions

View File

@@ -265,9 +265,7 @@ namespace GHelper
private void LabelCharge_Click(object? sender, EventArgs e)
{
var report = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\battery-report.html";
ProcessHelper.RunCMD("powershell", $"powercfg /batteryreport /output \"{report}\"");
ProcessHelper.RunCMD("explorer", $"\"{report}\"");
BatteryControl.BatteryReport();
}
private void LabelVisual_Click(object? sender, EventArgs e)