- @echo off
- echo 1.x
- echo 2.xx
- echo 3.xxx
- echo 4.xxxx
- set /p n=请输入:
- call :%n:~,1%
- if "%n:~1,1%" neq "" call :%n:~1,1%
- if "%n:~2,1%" neq "" call :%n:~2,1%
- if "%n:~3,1%" neq "" call :%n:~3,1%
- pause
- exit
-
- :1 x
- echo 1.x
- goto :eof
-
- :2 xx
- echo 2.xx
- goto :eof
-
- :3 xxx
- echo 3.xxx
- goto :eof
-
- :4 xxxx
- echo 4.xxxx
- goto :eof
复制代码
[ 本帖最后由 tireless 于 2009-2-22 20:26 编辑 ] |