I'm not very familiar with MS-DOS batch cmds - hope someone of you can help.
How do I get the output of the FIND cmd in a %VARIABLE% ?
I'm trying to isolate some content of a long XML-file
The desired content is loctated in the <file_name>...</file_name> section of the XML-file
An example part of the XML-file:
<file_name>here is what I want to grep</file_name>
Here is my use of FIND so far:
FIND /N /I "file_name" "test.xml"
The above FIND cmd offers the found linenumber an the content of the whole line.
Output on screen looks like:
How can I get this output in a variable? To make further manipulation with it (e.g. to chomp it.)
I'm only interested in the "188.013" part.
I'm using W2K & cmd.exe
thanks for your help