title: Batch - Search for part/exact name and copy line from text file into batch as var
body: <p>This information below is contained in a text file and formatted as such.</p>
  
  <pre><code>/var/www/xxx/html/videos/video_folder_1
  /var/www/xxx/html/videos/video_folder_2
  /var/www/xxx/html/videos/video_folder_3
  /var/www/xxx/html/videos/video_folder_4
  /var/www/xxx/html/videos/video_folder_5
  /var/www/xxx/html/videos/video_folder_6
  /var/www/xxx/html/videos/video_folder_7
  </code></pre>
  
  <p>I also have a variable called <code>%file_name%</code> in the batch file already defined. </p>
  
  <p>So lets say that is it is <code>%file_name%</code> = <code>V001-video_folder_6.mp4</code></p>
  
  <p>As you can see there is some more extra information, <code>V001-</code> and <code>.mp4</code>.</p>
  
  <p>I would like to use the var <code>%file_name%</code> to search the text file and return the entire line. In this case it would return <code>/var/www/xxx/html/videos/video_folder_6</code> and then put this information in a new var, let us say, <code>%folder_path%</code>.</p>
  
  <p>I think I would use <code>findstr</code> however I have been playing around and not getting the best results.</p>