4。在bat里面可以调用vbs隐藏,但是运行还是会弹出窗口闪一下。bat代码:
@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
:begin
REM
5。还有一种窗口不会闪,vbs代码为:
set ws=WScript.CreateObject("WScript.Shell")
ws.Run "dir\XXXX.bat",0