title: How to apply a text file with multiple variables to the batch console
body: <p>Okay so I have a batch program that writes my character's stats to a txt file when I save the game. However I am unable to load those stats properly. I thought maybe if I saved them with console commands and syntax properly that I could use the type command and it would run the commands setting the variables on the console to the ones in the txt file. Is there a simple way just like writing all of the variables to the txt file but reverse?</p>
  
  <p>Sample code of variables being written:</p>
  
  <pre><code>if not exist "%~dp0\Users" md "Users" (
  Echo set CharName=%UserCharacter%
  Echo set Level=%Level%
  Echo set Health=%Health%
  Echo set ExpCap=%ExpCap%
  )&gt; "%~dp0\Users\%UserCharacter%.txt"
  </code></pre>
  
  <p>See I wrote it like this to the text file thinking I could load the file and it would set the variables to what the file had. </p>
  
  <p>Didn't work. If you have any questions ask. I can't post pictures right now but I think I got my point across. </p>