subprocess.Popen運行報錯WindowsError: [Error 740]

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')
相關文章
相關標籤/搜索