[Promise don't come easy] I should have known all along. There was something wrong. I just never read between the lines. Then I woke up one day and found you on your way. Leaving nothing but my heart behind. What can I do to make it up to you. Promises don't come easy. But tell me if there's a way to bring you back home to stay. Well I'd promises anything to you. I've been walkin' around with my head hanging down. Wondrin' what I'm gonna do. 'Cause when you walked out that door. 要求,CMD原始窗口中,不调节窗口大小,不生成临时文件,居中显示文本内容。输出如下: 代码:
[Promise don't come easy] I should have known all along. There was something wrong. I just never read between the lines. Then I woke up one day and found you on your way. Leaving nothing but my heart behind. What can I do to make it up to you. Promises don't come easy. But tell me if there's a way to bring you back home to stay. Well I'd promises anything to you. I've been walkin' around with my head hanging down. Wondrin' what I'm gonna do. 'Cause when you walked out that door.
@echo off copy /y 1.txt 2.txt>nul echo.>>2.txtecho end>>2.txt for /f "tokens=1,2* delims=: " %%i in ('findstr /n /o .* 2.txt') do ( set "_%%i=%%j"set ".%%i=%%k" if %%i geq 2 call :lp %%i ) del /q 2.txtpause>nulgoto :eof :lp set /a n=%1-1 set /a num=_%1-_%n%-2 set /a kl=(80-num)/2 for /l %%i in (1,1,%kl%) do set /p= NUL call,set /p=%%.%n%%%NULECHO.