- @echo off&setlocal EnableDelayedExpansion
- set "str=i like the bathome,because here is the batch of the world."
- for %%i in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do set str=!str:%%i=%%i!
- :lp
- set/p=!str:~%n%,1!<nul
- set/a n+=1
- for /l %%j in (1,1,500) do ver>nul
- if not "!str:~%n%,1!"=="" goto lp
- pause>nul
复制代码
|