title: CMD dir command
body: <p>I'm using dir to retrive all directories from specified path but I'm getting directories paths from two locations. </p>
  
  <pre><code>dir "C:\ssis" /b /s /ad *.* | sort &gt;c:\ssis\task4\content.txt
  </code></pre>
  
  <p>And result is </p>
  
  <p><a href="https://i.stack.imgur.com/COtvQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/COtvQ.png" alt="enter image description here"></a></p>
  
  <p>I want to get only marked (yellow) lines. Not directories from place where I open CMD </p>
  
  <p>Thanks :)
  PM</p>