2018年1月18日

c# 记录内容到txt文件

摘要: //string记录到文件 string a= content;//采样结果 if (!File.Exists("e:\\newfile\\newtxt.txt")) { new FileStream(" e:\\newfile\\newtxt.txt", FileMode.Create, File 阅读全文

posted @ 2018-01-18 12:43 七七2020 阅读(420) 评论(0) 推荐(0)

c# 关闭和重启.exe程序

摘要: Process[] myprocess = Process.GetProcessesByName("a"); if (myprocess.Count() > 0)//判断如果存在 { //myprocess[0].Kill();//关闭程序 } else { try { Process newPro 阅读全文

posted @ 2018-01-18 12:42 七七2020 阅读(7117) 评论(0) 推荐(0)

导航