联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off if "%1" == "h" goto begin mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit :begin if not exist "%temp%\times.tx_" >"%temp%\times.tx_" echo 10 for /f %%a in (%temp%\times.tx_) do set/a times=%%a if %times% EQU 0 exit set/a num=%times%-1 set/a num_=10-%num% echo 您已使用了%num_%次,剩余使用次数:%num%次 set/a times-=1 echo %times% >"%temp%\times.tx_" if %times% EQU 0 start "" cmd /c "echo 这里启动当前文件夹下的卸载命令&pause" rem 这里你批处理的开始
mshta vbscript:createobject("wscript.shell").run("""C:\AUTOEXEC.BAT"" h",0)(window.close)