|
@@ -71,7 +71,8 @@ namespace UAS_MES.Make
|
|
|
lbl = new ApplicationClass();
|
|
lbl = new ApplicationClass();
|
|
|
String str = SystemInf.ProcessesID + "|" + lbl.PID;
|
|
String str = SystemInf.ProcessesID + "|" + lbl.PID;
|
|
|
string sysdisc = Environment.GetEnvironmentVariable("windir").Substring(0, 1);
|
|
string sysdisc = Environment.GetEnvironmentVariable("windir").Substring(0, 1);
|
|
|
- FileStream fs = new FileStream(sysdisc + @":\" + "lblprocess" + ".txt", FileMode.Append, FileAccess.Write);
|
|
|
|
|
|
|
+ FileStream fs = new FileStream(Directory.GetCurrentDirectory() + @"\" + "lblprocess" + ".txt", FileMode.Append, FileAccess.Write);
|
|
|
|
|
+ Console.WriteLine(Directory.GetCurrentDirectory() + @"\" + "lblprocess" + ".txt");
|
|
|
StreamWriter sw = new StreamWriter(fs);
|
|
StreamWriter sw = new StreamWriter(fs);
|
|
|
sw.WriteLine(str, Encoding.UTF8);
|
|
sw.WriteLine(str, Encoding.UTF8);
|
|
|
sw.Close();
|
|
sw.Close();
|