title: How can I make a batch script copy files from the user folder with support for different users?
body: <p>I would like to use a short batch script to copy files from OneDrive to a different folder, the issue is the OneDrive folder is in the users folder under C:/.</p>
  
  <p>What can I do to have the batch script go into the user folder of the user currently logged in followed by the OneDrive folder to copy a specific file?</p>
  
  <p><strong>Currently this is what I have:</strong></p>
  
  <pre><code>xcopy "C:\jmills\OneDrive\TestFolder\Test_2018.accde" "C:\Test\Test_EXE\" /d
  </code></pre>
  
  <p>As you can see the user "jmills" is hard coded which makes the batch work with only this specific user.</p>