- @echo off
- @set /p k4me=请输入一个位数
- for /f "tokens=1-9 delims=," %%a in (4.txt) do (
- if %k4me% equ %%a echo %%a,%%b,%%c,%%d,%%e>txt.txt
- if %k4me% equ %%b echo %%a,%%b,%%c,%%d,%%e>txt.txt
- if %k4me% equ %%c echo %%a,%%b,%%c,%%d,%%e>txt.txt
- if %k4me% equ %%d echo %%a,%%b,%%c,%%d,%%e>txt.txt
- )
- notepad txt.txt
- pasue
复制代码 求大神来帮我看看 , 我是新手, 希望使这个命令循环下去,不知道可以不? |