|
@@ -50,11 +50,13 @@ namespace Client.Start
|
|
|
msg = ReadResultString(resultFilePath);
|
|
|
|
|
|
Console.WriteLine(DateTime.Now + " 命令执行完成:" + revitCmd);
|
|
|
+#if !DEBUG
|
|
|
//执行完成后,删除文件
|
|
|
foreach (var f in filePathList)
|
|
|
{
|
|
|
File.Delete(f);
|
|
|
}
|
|
|
+#endif
|
|
|
}
|
|
|
catch (Exception e)
|
|
|
{
|
|
@@ -105,12 +107,15 @@ namespace Client.Start
|
|
|
Console.WriteLine(filePath);
|
|
|
string str = "";
|
|
|
|
|
|
-
|
|
|
- if (File.Exists(filePath))
|
|
|
+ if (File.Exists(filePath))
|
|
|
{
|
|
|
str = File.ReadAllText(filePath);
|
|
|
+#if !DEBUG
|
|
|
File.Delete(filePath);
|
|
|
- }
|
|
|
+#endif
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
return str;
|
|
|
}
|