|
|
@@ -85,7 +85,7 @@ namespace UAS_MES
|
|
|
//{
|
|
|
// processes[i].Kill();
|
|
|
//}
|
|
|
- string[] lines = System.IO.File.ReadAllLines(sysdisc + @":\" + "lblprocess" + ".txt");
|
|
|
+ string[] lines = System.IO.File.ReadAllLines(Directory.GetCurrentDirectory() + @"\" + "lblprocess" + ".txt");
|
|
|
foreach (string line in lines)
|
|
|
{
|
|
|
if (line != "")
|
|
|
@@ -113,7 +113,7 @@ namespace UAS_MES
|
|
|
{
|
|
|
}
|
|
|
Console.WriteLine("删除");
|
|
|
- FileStream fas = new FileStream(sysdisc + @":\" + "lblprocess" + ".txt", FileMode.Create, FileAccess.ReadWrite);
|
|
|
+ FileStream fas = new FileStream(Directory.GetCurrentDirectory() + @"\" + "lblprocess" + ".txt", FileMode.Create, FileAccess.ReadWrite);
|
|
|
StreamWriter sw = new StreamWriter(fas);
|
|
|
StreamReader sr = new StreamReader(fas);
|
|
|
String s = sr.ReadToEnd();
|