示例#1
0
        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();
     }
 }
示例#3
0
        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();
        }