mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Battery report cleanup
This commit is contained in:
@@ -56,13 +56,8 @@ namespace GHelper.Battery
|
|||||||
cmd.StartInfo.UseShellExecute = false;
|
cmd.StartInfo.UseShellExecute = false;
|
||||||
cmd.StartInfo.CreateNoWindow = true;
|
cmd.StartInfo.CreateNoWindow = true;
|
||||||
cmd.StartInfo.FileName = "powershell";
|
cmd.StartInfo.FileName = "powershell";
|
||||||
cmd.StartInfo.Arguments = "powercfg /batteryreport";
|
cmd.StartInfo.Arguments = "powercfg /batteryreport; explorer battery-report.html";
|
||||||
cmd.Start();
|
cmd.Start();
|
||||||
|
|
||||||
cmd.StartInfo.FileName = "explorer";
|
|
||||||
cmd.StartInfo.Arguments = "battery-report.html";
|
|
||||||
cmd.Start();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user