Loading

摘要: public bool Ping(string ip) { int timeout = 1000; string data = "Test Data!"; System.Net.NetworkInformation.Ping p = new System.Net.NetworkInformation.Ping(); System.Net.NetworkInformation.PingOptions options = new System.Net.NetworkInformation.Ping... 阅读全文
posted @ 2012-05-16 15:46 魍魉_198x 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 进程寻找与终止 //寻找进程 public bool ExProgress(string name) { bool init = false; try { Process[] prc = Process.GetProcesses(); foreach (Process pr in prc) //遍历整个进程 { if (name == pr.ProcessNam... 阅读全文
posted @ 2012-05-16 15:40 魍魉_198x 阅读(148) 评论(0) 推荐(0) 编辑