diff --git a/client/data/Methods/Hardware.cs b/client/data/Methods/Hardware.cs index 954eacf..5e17ce2 100644 --- a/client/data/Methods/Hardware.cs +++ b/client/data/Methods/Hardware.cs @@ -1281,6 +1281,11 @@ private static async Task GetBatteryData() Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly() .Location); //Directory the .exe has been launched from + if (File.Exists(Path.Combine(path, "battery-report.xml"))) + { + File.Delete(Path.Combine(path, "battery-report.xml")); + } + Process cmd = new Process //Generate the XML report we'll be grabbing the data from { StartInfo =