Now i am getting the hang of creating very handy batch files,
i am trying to gain the complexity of my batches into a next level, but i have a problem immediately :).
I'll try to explain simple:
I have multiple files in a single dir.
With a FOR /R "%CD%" %%F IN (*.txt) DO (.......loop, i know which files and want to build a log file.
I echo some text with name of the 1st file found in the loop. So far it works.
Than the problem:
I would like to like to search for text-string in the files found in the loop above, and output the text-string into the log file:
for /f "tokens=* delims= " %%A in ( 'FIND /i "usr_device" ^< "%cd%\%%~nF.txt"' ) do set usr_output0=%%A
echo %usr_output0% >> %log%
The single commandline is correct (tested), but it's not working within the loop.
Anyone having an idea ?
Is the question clear enough ?
Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.