layout doc 进程管理 Chariot.process 对系统进程进行管理 Chariot.process.exec(bin_path, parameters) {#run} 运行指定的可执行文件 参数名 类型 说明 bin_path string 可执行文件名 parameters string 命令行参数,可忽略。 返回值 说明 number 新实例的进程号 await __C.process.exec('notepad'); await __C.process.exec('notepad', '/aaa.txt'); Chariot.process.execwait(bin_path, parameters) {#runwait} 运行指定的可执行文件,并等待其运行完毕。运行完毕后,返回运行结果信息。 参数名 类型 说明 bin_path string 可执行文件名 parameters string 命令行参数,可忽略。 返回值 说明 object 一个字典对象,其中: retcode (number) 进程返回值 stdout (string) 标准输出 stderr (string) 标准错误 await __C.process.execwait('notepad'); await __C.process.execwait('notepad', '/aaa.txt');