以下代码每条的含意- @echo off& mode con cols=80 lines=20& color 0b& setlocal enabledelayedexpansion
- del wind.txt 2>nul& set /p cds=test1:& set /p txt=test2:& set /p textx=test3:
- if not "%textx%"=="" (for %%1 in (%textx%)do (set /p textxy=<%%1
- call set wind01=%%wind01%% %%textxy%%))
-
-
- for %%1 in (%txt%)do (set /p oo=<%%1
- call echo %%oo%% >>wind.txt)
-
- call :smile a.txt wind
- call :smile wind.txt windx
- del wind.txt
- if not "%textx%"=="" (
- for %%1 in (%smilex%)do for %%2 in (%wind01%)do if %%1==%%2 call set smile01=%%smile01%% %%1
- for %%9 in (!smile01!)do if not defined yy%%9 set xyyy=!xyyy! %%9&& set yy%%9=yy%%9
- echo !xyyy!)
-
- pause 1>nul& exit
- :smile
- for /f "delims=" %%1 in (%1)do for %%2 in (%%1)do for %%3 in (%cds%)do echo %%2| findstr ".%%3">nul&& call set %1=%%%1%% %%2
- if not "%textx%"=="" (call set smilex=%%%1%%)else call echo %%%1%%
复制代码
|