title: How do I find the current directory of a batch file, and then use it for the path?
body: <p>I have a batch file that I intend to distribute to our customers to run a software task. </p>
  
  <p>We distribute them as a folder or <code>.zip</code> with the files inside. Inside, there is the batch files and another folder with the files needed to run the batch.</p>
  
  <p>Normally, when you make a batch, you type the path where the files are. But I won't know where the files are. The files will still be kept inside the master folder, but I need to have the batch find that folder to run the files.</p>
  
  <p>So for example: If they have the master folder on the desktop and they run it, it would need to be something like <code>"C:\Users\Username\Desktop"</code> to run. You would have the batch CD to that location. </p>
  
  <p>But what if they run it from documents? I don't know the username, so I have to somehow have the batch find this. Any code and/or instructions would be great.</p>