- 帖子
- 6
- 积分
- 26
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2011-6-17
|
本帖最后由 pcl_test 于 2016-9-14 00:10 编辑
为什么还字显示有引号
代码如下:
@echo off
title spring-clover
color 0a
mode con: cols=80 lines=22
setlocal enabledelayedexpansion
set "theme=have a relax"
for /l %%a in (1 1 6) do echo.
set /p= <nul
call :string "!theme!"
pause
exit
:string
set string=%1
echo !string!
:str
set word=!string:~0,1!
set string=!string:~1!
set /p=!word!<nul&call :sleep 100
if defined string goto str
goto :eof
:sleep
set Time1=%time%
set/a minute1=1%Time1:~3,2%-100
set/a second1=1%Time1:~6,2%%Time1:~-2%0-100000
oop
set Time2=%time%
set/a minute2=1%Time2:~3,2%-100
set/a second2=1%Time2:~6,2%%Time2:~-2%0-100000
set/a difMs=((%minute2%-%minute1%+60)%%60)*60000+%second2%-%second1%
if %difMs% lss %1 goto Loop
goto :eof |
|