public interface IRunConsole { void Run(); } public abstract class RunConsole:IRunConsole { public abstract string[] Args { get; } public abstract string FileName { get; }//CMD public string result; public string error; public virtual int WaitExitedT…
class NetWorkDeviceInfo { public static string GetDeviceInfo() { System.Diagnostics.Process p = new System.Diagnostics.Process(); p.StartInfo.FileName = "netsh.exe"; p.StartInfo.Arguments = "wlan show interfaces"; p.StartInfo.UseShellE…