mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Execute file with space in name
This commit is contained in:
parent
591d1cd6fd
commit
535e475623
1 changed files with 2 additions and 2 deletions
|
|
@ -92,7 +92,7 @@ function FileIsLinkToFolder(const FileName: String; out LinkTarget: String): Boo
|
|||
function ExecCmdFork(sCmd: String): Boolean;
|
||||
{en
|
||||
Execute external commands
|
||||
@param(sCmd The executable or command itself)
|
||||
@param(sCmd The executable)
|
||||
@param(sParams The optional paramters)
|
||||
@param(sStartPath The initial working directory)
|
||||
@param(bShowCommandLinePriorToExecute Flag indicating if we want the user to be prompted at the very last
|
||||
|
|
@ -277,7 +277,7 @@ begin
|
|||
|
||||
if sCmd = EmptyStr then Exit(False);
|
||||
|
||||
sCmd := RemoveQuotation(UTF8ToSys(sCmd));
|
||||
sCmd := UTF8ToSys(sCmd);
|
||||
SplitCommandArgs(UTF8ToSys(sParams), Args);
|
||||
|
||||
Result := ExecuteCommand(sCmd, Args, sStartPath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue