Passing filenames per command line: Remove found match from input string after having found a quoted filename, so the second call to GetFileNames does not find some incomplete filename due to whitespaces in its name. See http://www.heidisql.com/forum.php?t=13743

This commit is contained in:
Ansgar Becker
2013-10-17 20:08:55 +00:00
parent dc1bf33ad4
commit a19223d381

View File

@ -2610,6 +2610,9 @@ var
FileNames.Add(rx.Match[1])
else
AbsentFiles.Add(rx.Match[1]);
// Remove match from input string, so the second call to GetFileNames without quotes
// does not detect filenames cut at whitespace
Delete(CommandLine, rx.MatchPos[1], rx.MatchLen[1]);
if not rx.ExecNext then
break;
end;