如果在你的软件上加上这个代码,更像一个软件了
- @echo off & SETLOCAL EnableDelayedExpansion
- color 1b
- title Windows 优化助手
- mode con lines=9
- set work=0
- set n=0
- set mo=0
- set number=0
- set all=60
- set second=%all%
- :show
- :check
- if %number% GTR %mo% set num=%num%▉&set /a mo=%mo%+1&goto check
- :2
- cls
- echo 进度: %n% / %all% 剩余时间:%second%秒
- echo.
- echo.
- echo 正在加载 Windows 优化助手 完成 %work% %%%
- echo.
- if not "%num%"=="" echo %num%
- if not "%num%"=="" echo %num%
- if %work%==100 goto end
- ping 127.1 -n 1 >nul
- set /a n=%n%+3
- set /a second=%all%-%n%
- set /a work=(%n%)*100/(%all%)
- set /a number=%work%/3
- set /a number=%number%+1
- goto show
- endlocal
- :end
- endlocal
复制代码
|