title: Batch - Trying to read a text file
body: <p>I'm trying to make a batch file that will read a text file (Net.txt) to pull a datapath from it. Assign it to a variable then empty a file from a nearby location.</p>
  
  <p>Net.txt looks like </p>
  
  <pre><code> SharedPath=C:\Program\2017\
   SharedUNC=C:\Program\2017\
  </code></pre>
  
  <p>Then find the directory and delete files with a specific extension.</p>
  
  <pre><code>cd %variable%\OPTION\trash
  DEL *.xxx
  </code></pre>
  
  <p>This works great locally when everything is on C: but I don't think batch/cmd supports UNC paths. Is there a better language to use? </p>