- @echo off
- cd /d "%~dp0"
- >"b.txt" (
- echo if "%%1"=="hide" goto CmdBegin
- echo start mshta vbscript:createobject^("wscript.shell"^).run^("""%%~0"" hide",0^)^(window.close^)^&^&exit
- echo :CmdBegin
- )
- pause
复制代码
- @echo off
- cd /d "%~dp0"
- more +5 "%~f0" > "b.txt"
- pause
- exit
- if "%1"=="hide" goto CmdBegin
- start mshta vbscript:createobject("wscript.shell").run("""%~0"" hide",0)(window.close)&&exit
- :CmdBegin
复制代码
|