title: Is there any way for windows batch script or command prompt to list the directories from a certain folder only without including the hard drive?
body: <p>I tried using <code>dir /b/s *.png </code> to list the directories of all my png files. the results were like this:</p>
  <pre><code>D:\Newfolder\test\images\approved\11.png
  D:\Newfolder\test\images\approved\12.png
  D:\Newfolder\test\images\approved\13.png
  D:\Newfolder\test\images\approved\14.png
  D:\Newfolder\test\images\approved\15.png
  D:\Newfolder\test\images\approved\16.png
  D:\Newfolder\test\images\approved\17.png
  D:\Newfolder\test\images\approved\18.png
  D:\Newfolder\test\images\approved\19.png
  D:\Newfolder\test\images\approved\20.png
  </code></pre>
  <p>I want it to be shortened so it will display only starting from the <em><strong>images</strong></em> folder;</p>
  <pre><code>images\approved\11.png
  images\approved\12.png
  images\approved\13.png
  images\approved\14.png
  images\approved\15.png
  images\approved\16.png
  images\approved\17.png
  images\approved\18.png
  images\approved\19.png
  images\approved\20.png
  </code></pre>
  <p>is it possible to do?
  if it's not, is there any way for me to edit the directories by deleting the first few folder from a generated text file?</p>
  <p>say i put <code>dir /b/s *.png &gt; path.txt</code> how do i edit the texts since the list got no whitespaces.</p>
  <p>i'm still new to this so i'm not so familiar with much commands but this is as far as my understanding can do.</p>