subprocess.Popen在win10下運行報740錯時ui
使用os.popen替換,運行OK,exe程序成功啓動spa
import subprocess import uiautomation as automation import os print (automation.GetRootControl()) # subprocess.Popen('D:\SYJ\CloudPos\ZlPos.exe') os.popen('D:\SYJ\CloudPos\ZlPos.exe')