title: using the tree command in a batch file
body: <p>Good day everyone,</p>
  
  <p>just starting out in this forum ^^</p>
  
  <p>I was able to run the tree command in the command window and was able to export the data to a file</p>
  
  <p>however, for users that are slower / don't know, I wanted to create a batch file,</p>
  
  <p>where all they put is the main path or url, and the batch will create the file for them,</p>
  
  <p>i am having problems implementing the "tree command" in the batch  </p>
  
  <pre><code>@echo off
  color 0A
  Title Export data
  
  echo write the path you want to see the folder structure for:
  set /p path="&gt;&gt;"
  
  cd /d %path%
  
  tree /a &gt;&gt;results.xls
  pause
  exit
  </code></pre>
  
  <p>thanks for your time,</p>