I have the following Problem with my batch-file:
findstr "Complete:" %MyLogFile% | findstr %ScanID% >>temp.txt
With the above findstr I'm able to extract the exact line of the .txt- file I need.
Now I need a number, which is in that line, so I thought about a pipe like this:
findstr "Complete:" %MyLogFile% | findstr %ScanID% | for /f "tokens=6" %%G IN (%MyLogFile%) DO @echo %%G >>temp.txt
But this gives me the numbers of all the lines in the entire file.
What can I do to only get the one from the line I chose?
Any help would be greatly appreciated, I'm at my wit's end...
message edited by Salander