如何从Iron python脚本(而不是cmd.exe)执行命令?

时间:2013-11-10 11:36:47

标签: python shell python-2.7 exe ironpython

我在看这个问题:

Execute terminal command from python in new terminal window?

并且想知道如何将带有2个参数的命令发送到不是cmd.exe的shell 我有自己的shell,熟悉我的命令,但我想让它从python脚本运行。

类似的东西:

def func(path_to_exe, command_name, arg1, arg2):
 execute(path_to_exe, "command_name arg1 arg2")

我看到使用子进程可以提供帮助,但所有示例都使用命令行

谢谢!

0 个答案:

没有答案
相关问题