【发布时间】:2020-06-14 21:02:59
【问题描述】:
我需要在 AutoCAD/ZWCAD 中运行需要提升权限的应用程序。
通过 LISP,我可以使用以下方式运行应用程序:
(startapp "C:\\[path]\\Application.exe")
但是对于需要电梯权限的应用程序startapp 返回nil 并且应用程序无法运行。
也试过了:
(setq Shell (vlax-get-or-create-object "Wscript.Shell"))
(setq updater(vlax-invoke-method Shell 'Exec (strcat path "Appname.exe" ) ) )
(vlax-release-object Shell)
但我得到了:
*error*: Automation error : WshShell.Exec : The requested operation requires elevation.
那么还有其他方式来运行需要提升权限的外部应用程序吗?
【问题讨论】:
标签: autocad autocad-plugin autolisp objectarx