【ArcGIS/C#】调用控制台处理代码

 代码示例

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 \"" + 
上一篇:运维的痛点和难点在哪里?


下一篇:外包干了5天,技术明显退步