mirror of https://github.com/2dust/v2rayN
If Process.start contains spaces, add quotes
parent
1dcfe661e9
commit
e2b8f4f89a
|
@ -593,6 +593,9 @@ namespace ServiceLib.Common
|
|||
return;
|
||||
}
|
||||
|
||||
if (fileName.Contains(' ')) fileName = fileName.AppendQuotes();
|
||||
if (arguments.Contains(' ')) arguments = arguments.AppendQuotes();
|
||||
|
||||
Process.Start(new ProcessStartInfo(fileName, arguments) { UseShellExecute = true });
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
Loading…
Reference in New Issue