title: Moving Batch file to different Computer
body: <p>So I have a batch file that works well on my computer either using <code>%userprofile%</code> or writing out the full path. The issue I have is when I move this batch file to a new computer it gives me either a curl error or no error at all.</p>
  
  <p>This line:</p>
  
  <pre><code>del "%userprofile%\Ayla_Data\AylaDatapoints\*.*?"
  </code></pre>
  
  <p>works fine on the other computer. This line:</p>
  
  <pre><code>curl -H "Authorization: auth_token %$token%" https://ads-dev.example.com/apiv1/number/!$Unit!/props.xml&gt;%userprofile%\Ayla_Data\XMLFile.xml
  </code></pre>
  
  <p>Does not. All I did was put the folder <code>Ayla_Data</code> onto a usb and copied it to a different computer. </p>
  
  <p>If I take out the second part of the command curl works fine:</p>
  
  <pre><code>curl -H "Authorization: auth_token %$token%" https://ads-dev.example.com/apiv1/number/!$Unit!/props.xml
  </code></pre>
  
  <p>I thought that maybe I didn't have the <code>userprofile</code> variable set but that hasn't helped. Is this a problem with the computer reading the <code>%</code> as a character instead of part of a variable? I'm not really sure what's going on. Any ideas?</p>