--- xmlTools/trunk/posUpdate/XmlPatch.cs 2013/05/09 10:37:17 867 +++ xmlTools/trunk/posUpdate/XmlPatch.cs 2013/05/10 14:42:11 868 @@ -279,7 +279,7 @@ namespace xmlTools try { - if (forceFiles != null) + if (!String.IsNullOrEmpty(forceFiles)) { string paramType = ""; @@ -305,6 +305,9 @@ namespace xmlTools if (endIdx == -1) { endIdx = command.IndexOf("\n", startIdx); // or with endline + if(endIdx==-1){ // Filename parameters is the last one in the file (file ends with this parameter) + endIdx=command.Length-1; + } } string currFilename = command.Substring(startIdx, endIdx - startIdx); command = command.Replace(currFilename, this.forceFiles);