From 76ca670b6c4a57dfa75eda083205fe3aa3cb32d3 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 19 May 2020 21:06:10 +0000 Subject: [PATCH] --- server/AyaNova/util/RunProgram.cs | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/server/AyaNova/util/RunProgram.cs b/server/AyaNova/util/RunProgram.cs index 77e37cfc..b58fc997 100644 --- a/server/AyaNova/util/RunProgram.cs +++ b/server/AyaNova/util/RunProgram.cs @@ -1,10 +1,5 @@ using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System; using System.Diagnostics; - using System.Runtime.InteropServices; namespace AyaNova.Util @@ -35,27 +30,6 @@ namespace AyaNova.Util } - // using (var process = new Process()) - // { - // process.StartInfo.FileName = @"..\HelloWorld\bin\Debug\helloworld.exe"; // relative path. absolute path works too. - // process.StartInfo.Arguments = $"{id}"; - // //process.StartInfo.FileName = @"cmd.exe"; - // //process.StartInfo.Arguments = @"/c dir"; // print the current working directory information - // process.StartInfo.CreateNoWindow = true; - // process.StartInfo.UseShellExecute = false; - // process.StartInfo.RedirectStandardOutput = true; - // process.StartInfo.RedirectStandardError = true; - - // process.OutputDataReceived += (sender, data) => Console.WriteLine(data.Data); - // process.ErrorDataReceived += (sender, data) => Console.WriteLine(data.Data); - // Console.WriteLine("starting"); - // process.Start(); - // process.BeginOutputReadLine(); - // process.BeginErrorReadLine(); - // var exited = process.WaitForExit(1000 * 10); // (optional) wait up to 10 seconds - // Console.WriteLine($"exit {exited}"); - // } - public static string RunWindows(string cmd, string arguments) {