title: How to make a variable minus from a number. Batch File
body: <p>Basically I want to use 2020 minus a variable to make another variable.</p>
  
  <p>This is the code I have at the moment.</p>
  
  <pre><code>echo Type Your Year, then press enter.
  set/p "myear=&gt;"
  echo Type the year of the person's stuff you want to copy, then press enter.
  set/p "yearofv=&gt;"
  cls
  set/p "myyear="2020-%myear%"
  set/p year="2020-%yearofv%"
  md "c:\%myyear%\%myuser%\My Documents\File Copier\%user%'s Data\Documents"
  copy "c:\%year%\%user%\My Documents" "c:\%myyear%\%myuser%\My Documents\File Copier\%user%'s Data\Document
  </code></pre>
  
  <p>can anybody run make any suggestions as how to help.</p>
  
  <p>Thanks</p>
  
  <p>Sam Inc.</p>