title: Make a relative path in batch file
body: <p>I have a batch file that I wont know what drive letter it will be as I will be moving around alot.</p>
  
  <p>For example:
  The adobe files reside in: J:\Files\New folder\USB\Adob</p>
  
  <p>The batch file is executed from: J:\Files\New folder\USB\USBSTICK</p>
  
  <p>So I tried the code:</p>
  
  <pre><code>xcopy /s /y "%~dp0\..\..\USB\Adob\*" "C:\Program Files\"
  </code></pre>
  
  <p>But it will not copy the files. How can I get it dynamic?</p>