terse 当前在线
中将
@echo off cls set mulu=data\work for /f %%a in ('dir /s /b %mulu%\*.txt') do ( for /f %%b in ('findstr "第二行" %%a‘) do ( for /f "tokens=2 delims==" %%c in ('echo %%b') do ( if "%%c"=="" start /w "" "%windir%\system32\notepad.exe" "%%a" ) ) )复制代码
TOP
for /f "tokens=1* delims==" %%c in ('echo %%b') do ( if "%%d"=="" start /w "" "%windir%\system32\notepad.exe" "%%a" )复制代码
(for /f "tokens=2 delims==" %%c in ('echo %%b') do ( color ))||start /w "" "%windir%\system32\notepad.exe" "%%a"复制代码
@echo off for /f "delims=" %%a in ('findstr /isrm "a=\>" *.txt') do ( start /w "" "%windir%\system32\notepad.exe" "%%a" ) pause 复制代码