@echo off cpuz_x64.exe -txt=result setlocal enabledelayedexpansion
set "searchStr=Manufacturing date" set "filePath=%~dp0\result.txt"
set "found=" for /F "usebackq delims=" %%G in ("%filePath%") do ( set "line=%%G" echo !line! | find "%searchStr%" >nul if !errorlevel! equ 0 ( echo Found: !line! set "found=1" exit /b ) ) if not defined found ( echo No match found. )
endlocal
机器人回答的,好使,哈哈
|