热门排行
简介
可以把文本文件里的字符反序着列出来.先把test.txt里的字符填好.再双击运行即可
[code]
@echo off
:: 反序列出文本的每行内容
:: 不能处理双引号
:: code by jm 2006-10-5 Modified on 2007-3-13 CMD@XP
for /f "delims=" %%i in (test.txt) do (
set "str=%%i"
set var=
call :intercept
)
pause
goto :eof
:intercept
if not "%str%"=="" (
set "var=%str:~0,1%%var%"
set "str=%str:~1%"
goto intercept
) else (
echo "%var%"
)
goto :eof
[/code]