- @echo off
- setlocal
- setlocal EnableDelayedExpansion
- set /p input=请输入:
- if "!input!"=="" %0
- :aaa
- set /a n+=1
- set /p = !input:~-%n%,1!<nul
- rem 等号不能放在第一位,所以一定要加空格和
- if not "!input:~0,%n%!"=="!input!" goto aaa
- endlocal&&pause>nul
- cls&&%0
复制代码
[ 本帖最后由 yslyxqysl 于 2008-10-5 15:08 编辑 ] |