设置bat后台运行,bat如何以管理员身份运行

首页 > 实用技巧 > 作者:YD1662023-11-12 06:11:16

bat文件后台运行

需要在运行的bat文件内容前面加上

if "%1"=="hide" goto CmdBeginstart mshta vbscript:createobject("wscript.shell").run("""%~0"" hide",0)(window.close)&&exit:CmdBegin

设置bat后台运行,bat如何以管理员身份运行(1)

设置bat后台运行,bat如何以管理员身份运行(2)

,

栏目热文

文档排行

本站推荐

Copyright © 2018 - 2021 www.yd166.com., All Rights Reserved.