本帖最后由 pcl_test 于 2015-5-2 23:53 编辑
原理就是字符叠加或递减
两个简单的例子- @echo off
- for /l %%a in (1 1 20) do (
- ping -n 1 0 >nul
- set /p=▉<nul
- )
- pause
复制代码
- @echo off & setlocal enabledelayedexpansion
- for /l %%a in (1 1 20) do (
- set s=!s!▉
- echo !s!
- ping -n 1 0 >nul
- cls
- )
- pause
复制代码 再来个稍有难度的例子- @echo off &setlocal enabledelayedexpansion
- for /l %%a in (1 1 55) do (
- set a========================================================
- set a=!a:~%%a!
- set b=!b!^>
- set /p=!b!!a!<nul
- ping -n 1 0 >nul
- cls
- )
- pause
复制代码
|