title: Read values from TXT file into CMD file
body: <p>I am trying to do the following:</p>
  
  <p>I have a list of all the computer's service tag, internal number &amp; shelf number.</p>
  
  <p>I want to display the computer's service tag, along with our internal number &amp; shelf number and capture into a log file for our tracking purposes. </p>
  
  <p>The BIOS also has the service tag stored in it, I know if I give a command like </p>
  
  <pre><code>if %servicetag%==(here it looks for the same service tag from my text file) 
  </code></pre>
  
  <p>If the above numbers match then it can show <code>service tag</code> + <code>internal number</code> + <code>shelf number</code>.</p>
  
  <pre><code>For /f  "skip=2 tokens=2 delims=," %%i in ('wmic bios get serialnumber /FORMAT:csv') do (set "servicetag=%%i")
  </code></pre>
  
  <p>(I don't know what line to put for pulling the variables from my txt file. the name of my txt file is serverlist.txt) I don't even know how to format the info in my txt file. Please help!!</p>
  
  <pre><code>ECHO Comments="Service Tag: %servicetag%"&gt;&gt;R:\SYSTEM.LOG
  ECHO Comments="Inventory Number: %internalnumber%"&gt;&gt;R:\SYSTEM.LOG
  ECHO Comments="Shelf Number: %shelfnumber%"&gt;&gt;R:\SYSTEM.LOG
  </code></pre>