I need to set a variable to a substring I get from a find command, but it is returning the command
findstr /is "CouId:" C:\dev\AssayInfo.txt set number=findstr /is "CouId:" C:\dev\AssayInfo.txt echo %number% pause This is what the file that I'm using findstr looks like:
Protocol: NVD_RCP_Fluidic_Accuracy_v0.4 ProtocolVersion: 1 SampleId: FLQC+20191126+00111280+96 InstrumentId: 123456789001 CouId: 138527011 CouSlot: 1 The variable should have the value 138527011 in this case.