@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 这里你批处理的开始 |
|