Skip to content

Commit

Permalink
windows: 完善 10 秒倒计时
Browse files Browse the repository at this point in the history
  • Loading branch information
bin456789 committed Sep 7, 2024
1 parent 5b133fe commit eba264e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions windows-setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ rem 还原 setup.exe
rename X:\setup.exe.disabled setup.exe

rem 等待 10 秒才自动安装
echo Press Ctrl+C within 10 seconds to cancel the automatic installation.
call :sleep 10000
cls
for /l %%i in (10,-1,1) do (
echo Press Ctrl+C within 10 seconds to cancel the automatic installation.
call :sleep 1000
cls
)

rem win7 find 命令在 65001 代码页下有问题,仅限 win 7
rem findstr 就正常,但安装程序又没有 findstr
Expand Down

0 comments on commit eba264e

Please sign in to comment.