Update ProcessRunner.cs -- fix for space chars in running app file name (#3317)

fix pascalabcnet/pascalabcnet#ISSUE-3315
This commit is contained in:
Nikolay Kuznetsov 2025-07-05 11:09:00 +03:00 committed by GitHub
parent 6fa1caa034
commit e14b517e9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -213,6 +213,8 @@ namespace VisualPascalABC.Utils
public string TempBatFile = null;
public void Start(string command, string arguments, bool redirectIO, bool redirectErrors, bool RunWithPause, bool attachDebugger, bool fictive_attach)
{
if (command.Contains(" "))
command = "\"" + command + "\"";
RedirectIO=redirectIO;
process = new Process();
string BatFile = null;