如何在Windows 7中运行提升的程序?

发布于 2024-11-14 15:28:19 字数 78 浏览 10 评论 0原文

我在 Excel VBA 中创建了一个应用程序,需要从脚本中运行批处理文件,我想知道如何提升该进程创建的所有进程。请问我需要知道如何提升流程?

I created an application in Excel VBA that needs to run a batch file out of script and I was wondering how I can elevate all the processes that the process creates. Please I need to know how to elevate processes?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

誰ツ都不明白 2024-11-21 15:28:19

如果您有 EXE,则可以嵌入一个清单,使其在 Windows 7/Vista 上需要管理员权限。

编辑:执行此清单的全部内容将是:

 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
        <requestedPrivileges>
        <requestedExecutionLevel level="highestAvailable" uiAccess="False" />
        </requestedPrivileges>
     </security>
    </trustInfo>
  </assembly>

If you have an EXE, you can embed a manifest it that will make it require adminrights on Windows 7/Vista.

Edit: The entire that does this manifest would be:

 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
        <requestedPrivileges>
        <requestedExecutionLevel level="highestAvailable" uiAccess="False" />
        </requestedPrivileges>
     </security>
    </trustInfo>
  </assembly>

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文