Index: trunk/src/Dam/Data/StabilityServiceAgent.cs =================================================================== diff -u -r126 -r155 --- trunk/src/Dam/Data/StabilityServiceAgent.cs (.../StabilityServiceAgent.cs) (revision 126) +++ trunk/src/Dam/Data/StabilityServiceAgent.cs (.../StabilityServiceAgent.cs) (revision 155) @@ -413,23 +413,22 @@ string mStabIniFilename = ""; if (ProgramType == ProgramType.SlopeW) { - argument = " /s /x " + quote + folderOrFileName + quote + " " + quote + Path.GetFileNameWithoutExtension(folderOrFileName) + quote; programpath = SlopeWExePath; + argument = " /s /x " + quote + folderOrFileName + quote + " " + quote + Path.GetFileNameWithoutExtension(folderOrFileName) + quote; } else { - string filename = Path.GetTempFileName(); - + programpath = MStabExePath; mStabIniFilename = CreateMStabIniFile(folderOrFileName); argument = string.Format("/b \"{0}\"", mStabIniFilename); - programpath = MStabExePath; - File.WriteAllText(filename, programpath); - File.WriteAllText(filename, argument); - File.AppendAllText(filename, mStabIniFilename); - argument = string.Format("/B /PlotJPeg /Plot \"{0}\"", folderOrFileName); // note: use the folder name only for running MStab in batch mode - File.AppendAllText(filename, argument); - programpath = MStabExePath; + // For debugging and calling with commandline options i.s.o. inifile + //string filename = Path.GetTempFileName(); + //File.WriteAllText(filename, programpath); + //File.WriteAllText(filename, argument); + //File.AppendAllText(filename, mStabIniFilename); + //argument = string.Format("/B /PlotJPeg /Plot \"{0}\"", folderOrFileName); // note: use the folder name only for running MStab in batch mode + //File.AppendAllText(filename, argument); } var process = new Process