我需要在 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.
那么是否有任何其他方式来运行需要提升权限的外部应用程序?