mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Generate battery report in user home directory https://github.com/seerge/g-helper/issues/2311
This commit is contained in:
@@ -265,8 +265,9 @@ namespace GHelper
|
||||
|
||||
private void LabelCharge_Click(object? sender, EventArgs e)
|
||||
{
|
||||
ProcessHelper.RunCMD("powershell", "powercfg /batteryreport");
|
||||
ProcessHelper.RunCMD("explorer", "battery-report.html");
|
||||
var report = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\battery-report.html";
|
||||
ProcessHelper.RunCMD("powershell", $"powercfg /batteryreport /output \"{report}\"");
|
||||
ProcessHelper.RunCMD("explorer", $"\"{report}\"");
|
||||
}
|
||||
|
||||
private void LabelVisual_Click(object? sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user