bat后台运行

在脚本前面加上如下内容,bat将在后台执行

@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin

posted @ 2020-11-02 16:09  会飞的老虎  阅读(727)  评论(0编辑  收藏  举报