Assign specific string of a specific line of a text file to a variable
<p>I have a text file where I know that the 16th line of the file will begin with <code>_____Dest : xxx</code>, where the underscores (5) are all spaces and xxx is not a known character length and may contain spaces. I want to assign xxx to a variable in a batch file. I imagine the code would contain a <code>for /f "skip=15 delims="</code> and a <code>find "Dest : "</code> in there, but I'm not exactly sure how to go about it.</p>

<p>If it helps, I know that xxx will be a path that begins with <code>\\</code> and I want to include the <code>\\</code> in the variable.</p>

<p>Here is an excerpt from the file:   </p>

<pre><code>******************************************************************************* 
*                                                                             * 
* This is the robocopy log section.                                           * 
*                                                                             * 
******************************************************************************* 



-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows                              
-------------------------------------------------------------------------------

  Started : Fri Dec 09 20:28:08 2016

   Source : \\server\path...
     Dest : \\server\path...

    Files : *.*

  Options : *.* /TEE /S /E /COPY:DAT /MT:128 /R:1 /W:1 

etc.
etc.
</code></pre>

<p>I want to assign everything on the 16th line after <code>Dest :</code> to a variable</p>