title: Creating a DIR list and adding text to the beginning and end
body: <p>What I am trying to do is list files including the file path, then add text and parentheses to them. So, i start with:</p>
  
  <p>1.jpg</p>
  
  <p>2.jpg</p>
  
  <p>3.jpg</p>
  
  <p>And I use</p>
  
  <pre><code>DIR /s/b /on *.JPG &gt; LIST_JPG.DAT
  </code></pre>
  
  <p>To get them to be</p>
  
  <p>c:/foldera/folderb/1.jpg</p>
  
  <p>c:/foldera/folderb/2.jpg</p>
  
  <p>c:/foldera/folderb/2.jpg</p>
  
  <p>The next part I need to do is add text to the beginning that reads "exifread -TEXT" in front of it, and put parentheses around the </p>
  
  <pre><code>@ECHO OFF 
  
  FOR %%i IN (*.JPG) DO ECHO exifread -TEXT "%%i"
  </code></pre>
  
  <p>Which gets me</p>
  
  <p>exifread -TEXT " 1.jpg "</p>
  
  <p>Which is so close, but what I need it to be is</p>
  
  <p>exifread -TEXT "c:/foldera/folderb/1.jpg"</p>
  
  <p>Any ideas? Any help is appreciated!</p>