1

ブロードバンド接続をC#で接続/切断したい

  string[] lines = System.IO.File.ReadAllLines(Path);
       // System.Windows.Forms.MessageBox.Show(lines[0] + "  " + lines[1] + "  " + lines[2]);
        System.Diagnostics.Process process = new System.Diagnostics.Process();
        System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
        startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
        startInfo.FileName = "cmd.exe";
        startInfo.Arguments = string.Format("/c rasdial {0} {1} {2}",lines[2]  , lines[0]  , lines[1]);        
        process.StartInfo = startInfo;
        process.Start();
4

0 に答える 0