--- xmlTools/trunk/posUpdate/XmlPatch.cs 2013/03/26 15:04:38 745 +++ xmlTools/trunk/posUpdate/XmlPatch.cs 2013/03/26 15:23:42 746 @@ -295,7 +295,7 @@ namespace xmlTools // Add the filename if it doesn't exists else { - command = command.Insert(command.Length-1," -filename:" + this.forceFiles); // -1 to be inside quotes + command = command.Insert(command.Length," -filename:" + this.forceFiles); } if (paramType != "") @@ -314,7 +314,7 @@ namespace xmlTools if (this.globalNoBackups && !Util.ContainsIgnoreCase(command,"nobackups")) // add noBackup flag if provided as global parameter { - command = command.Insert(command.Length - 1, " -nobackups"); // -1 to be inside quotes + command = command.Insert(command.Length, " -nobackups"); } Program.Main(Util.stringToArgsArray(command)); // use the current process is more efficient than start a new one