private void CreateDxDiagFile(string tmpFile) { string executable = Environment.GetEnvironmentVariable("windir") + @"\system32\dxdiag.exe"; string arguments = "/whql:off /t " + tmpFile; runner.Arguments = arguments; runner.Executable = executable; runner.Run(); }
public void CreateLogs(string destinationFolder) { destinationFolder = Path.GetFullPath(destinationFolder) + "\\"; runner.Executable = Path.GetFullPath("psloglist.exe"); foreach (string logName in logNames) { runner.Arguments = "-g \"" + destinationFolder + logName + ".evt\" " + logName; runner.Run(); } }
public void CreateLogs(string destinationFolder) { string dstFile = Path.Combine(destinationFolder, "dxdiag.txt"); if (File.Exists(dstFile)) { File.Delete(dstFile); } string executable = Path.Combine(Environment.SystemDirectory, "dxdiag.exe"); string arguments = "/whql:off /t " + dstFile; runner.Arguments = arguments; runner.Executable = executable; runner.Run(); }