復制代碼 代碼如下:
@echo off
:star
set Output=
set /p Enter=請輸入:
:Start
if not
set Output=%Output%%Enter:~
set Enter=%Enter:~
goto :Start)
echo
echo %Output%
pause >nul&goto :Star
From:http://tw.wingwit.com/Article/program/qrs/201405/31029.html