代码示例
private static string[] run_conda_process(string command, Action<string> on_msg, CancellationTokenSource cancel)
{
if (string.IsNullOrEmpty(command))
{
return new string[]
{
null,
ArcGIS.Desktop.Internal.Core.Conda.Resources.Error_Unexpected + " 'command' is null"
};
}
string arguments = string.Empty;
string text = null;
if (command[0] == '"')
{
int num = command.IndexOf('"', 1);
if (num > 1)
{
text = command.Substring(1, num - 1);
arguments = command.Substring(num + 2);
}
}
if (text == null)
{
text = "cmd.exe";
arguments = "/C \"" +