title: Windows batch file that reads commands from txt file
body: <p>I have this test.txt file with the following content:</p>
  
  <pre><code>@echo off
  wget -q http://subs.ro/get/21518
  move 21518 %userprofile%/Desktop/21518.zip
  %userprofile%/Desktop/21518.zip
  </code></pre>
  
  <p>This file is generated by a javascript and the content keeps changes.
  I have the following text.bat file :</p>
  
  <pre><code>for /F "eol=; tokens=1* delims=" %%i in ( test.txt ) do %%i
  </code></pre>
  
  <p>the problem is that the link to the
  desktop is not recognized because the system variable %userprofile% is not recognized, is pasted as a txt string.
  I am using this setup because I want to convert the bat file to a exe and create an invisible application that does everything in the background.</p>