[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
  1. @echo off
  2. setlocal enabledelayedexpansion
  3. for /l %%i in (1,1,20) do (
  4. set starstr=!starstr!*
  5. set spacestr= !spacestr!
  6. )
  7. set spacelen=20
  8. set starlen=1
  9. :STARTLOOP
  10. if !starlen! GTR 10 goto LOOPEND
  11. echo !spacestr:~1,%spacelen%! !starstr:~0,%starlen%!
  12. set /a spacelen=!spacelen!-2
  13. set /a starlen=!starlen!+1
  14. goto STARTLOOP
  15. :LOOPEND
  16. set spacelen=9
  17. set starlen=10
  18. :STARTLOOP2
  19. if !starlen! LSS 1 goto LOOPEND2
  20. echo !spacestr:~1,%spacelen%! !starstr:~0,%starlen%!
  21. set /a spacelen=!spacelen!-1
  22. set /a starlen=!starlen!-1
  23. goto STARTLOOP2
  24. :LOOPEND2
复制代码
1

评分人数

TOP

返回列表