然后是输入文件的..在原基础上改很容易~ ~- ::code by Fair_Jm@http://hi.baidu.com/fair_Jm
- @echo off&setlocal EnableDelayedExpansion
- title 彩色逐字输出您文件内的字符 made by Fair_Jm
- color F8
- :new
- cls
- set op=jm
- set /p op=请将文本直接拖入:
- cls
- if "%op%"=="jm" echo 无文本&ping /n 2 127.1 >nul&goto new
- for /f "delims=" %%i in ('findstr /n .* "%op%"') do (
- set "z=%%i"
- setlocal enabledelayedexpansion
- set z=!z:*:=!
- call :begin
- endlocal
- echo.
- )
- echo.&echo.
- echo 显示完毕 按回车键重新开始
- pause>nul
- goto new
- :begin
- if not defined z (goto :eof)
- set /a x=%random%%%9+1
- set "o=!z:~0,1!"
- set o=!o:^<= !
- set o=!o:^>= !
- set o=!o:^.= !
- set o=!o:^|= !
- set o=!o:^&= !
- set o=!o:^:= !
- set o=!o:^"= !
- set o=!o:^\= !
- set o=!o:^/= !
- set o=!o:t= !
- if "!o!"==" " set /p= !z:~0,1!<nul&goto :next
- set /p= <nul>"!z:~0,1!" 2>nul&findstr /a:F!x! .* *!z:~0,1! 2>nul&del "!z:~0,1!" 2>nul
- :next
- set z=!z:~1!
- ping /n 1 127.1 >nul
- goto :begin
复制代码
[ 本帖最后由 基拉freedom 于 2009-8-23 20:02 编辑 ] |