Update to the latest Platform::CreateProcess

This commit is contained in:
Wojtek Figat
2023-03-22 14:18:52 +01:00
parent c31e4023c4
commit 7d4bf8356e
11 changed files with 103 additions and 32 deletions

View File

@@ -569,7 +569,13 @@ namespace FlaxEditor.Windows
{
var tmpBat = StringUtils.CombinePaths(Globals.TemporaryFolder, Guid.NewGuid().ToString("N") + ".bat");
File.WriteAllText(tmpBat, command);
Platform.StartProcess(tmpBat, null, null, true, true);
var procSettings = new CreateProcessSettings
{
FileName = tmpBat,
HiddenWindow = true,
WaitForEnd = true,
};
Platform.CreateProcess(ref procSettings);
File.Delete(tmpBat);
}
catch (Exception ex)