Batch file 在批处理文件中逐行读取txt

Batch file 在批处理文件中逐行读取txt,batch-file,file-io,port,Batch File,File Io,Port,我试图以批处理文件的形式读取此txt文件,这让我自己非常恼火: Binary CapabilityDescriptions Caption Availability TRUE Intel(R) Active Management Technology - SOL (COM3) 2 TRUE

我试图以批处理文件的形式读取此txt文件,这让我自己非常恼火:

Binary  CapabilityDescriptions  Caption                                             Availability
TRUE                            Intel(R) Active Management Technology - SOL (COM3)  2           
TRUE                            Intel(R) Active Management Technology - SOL (COM4)  2           
TRUE                            Intel(R) Active Management Technology - SOL (COM5)  2           
如果标题包含字符串“英特尔”,我将尝试获取COM编号。请尝试以下操作:

@echo off
setlocal

for /f "tokens=4 delims=()" %%a in ('findstr "Intel(R)" findintel.txt') do echo %%a

向我们展示您尝试过的代码,并告诉我们问题出在哪里。