279 |
|
|
280 |
|
try |
281 |
|
{ |
282 |
< |
if (forceFiles != null) |
282 |
> |
if (!String.IsNullOrEmpty(forceFiles)) |
283 |
|
{ |
284 |
|
string paramType = ""; |
285 |
|
|
305 |
|
if (endIdx == -1) |
306 |
|
{ |
307 |
|
endIdx = command.IndexOf("\n", startIdx); // or with endline |
308 |
+ |
if(endIdx==-1){ // Filename parameters is the last one in the file (file ends with this parameter) |
309 |
+ |
endIdx=command.Length-1; |
310 |
+ |
} |
311 |
|
} |
312 |
|
string currFilename = command.Substring(startIdx, endIdx - startIdx); |
313 |
|
command = command.Replace(currFilename, this.forceFiles); |