title: Batch: How to run tree command from current directory?
body: <p>I may be confusing current directory with working directory but regardless I am trying to make a batch file that runs the <code>tree</code> command from the folder it's currently in.</p>
  
  <p>I have a folder called "Network_Switch_Backup" with a script, some other items and a subfolder called "backups". </p>
  
  <p>This has worked for testing purposes:</p>
  
  <pre><code>tree U:\Desktop\Network_Switch_Backup\backups /f
  </code></pre>
  
  <p>But as I will be zipping it and sending it to different computers and users clearly this isn't practical since they could put the folder anywhere besides the desktop.</p>
  
  <p>I've looked at other threads and amongst other things I tried, this looked the most promising (but still did not work):</p>
  
  <p><code>tree %cd%\backups /f</code></p>
  
  <p>However <code>tree %cd%\downloads /f</code> works perfectly fine when running from cmd so I'm just a bit confused.</p>