Home>
A log (text) with the following content is output by a program

,
I would like to get information from this log in batches,
The delimiter of the "for" statement delimits "-----------------------------------""> I want to do it, but please let me know because it doesn't work.
Thank you.

[Log information]
YYYY-MM-DD HH: MM: SS.sss XXXX XXXX --- XXXX: ------------------------------- ---- Start AAA processing --- X -----------------------------------
YYYY-MM-DD HH: MM: SS.sss XXXX XXXX --- XXXX: ------------------------------- ---- AAA processing end --- X -----------------------------------

[Batch]
setlocal enabledelayedexpansion
for/F"tokens = 2 delims = ------------------------------------"%% a in (file.txt) do @echo %% a