粗略的实现了,不知是否是楼主的意思。
- @echo off&setlocal enabledelayedexpansion&title test
- if "%1" neq "" goto next
- start/b %~fs0 a
- set "str=我爱批处理之家"
- :loop
- for /l %%a in (0 1 6) do (
- if not exist %temp%\had.tmp (
- set/p=!str:~%%a,1!<nul
- for /l %%i in (1 1 500) do echo.>nul
- if %%a equ 6 (
- for /l %%s in (1 1 20) do set/p= <nul&ping -n>nul
- )
- ) else (
- del %temp%\had.tmp
- cls&echo 这里是“下一步”的操作,不知你说的输入n返回,是返回到哪里。
- pause>nul&exit/b
- )
- )
- goto loop
-
- :next
- set/p var=
- if /i %var% equ y (echo a>%temp%\had.tmp)
- exit
复制代码
|