title: Exclude Windows folder in CMD Search
body: <p>I am fairly new to Batch files but this is my Batch File for displaying path for Jpegs, Mp3, Mp4 etc.</p>
  
  <pre><code>@echo off
  setlocal
  cd /d C:\
  Echo
  echo Files Paths :
  dir /b *.mp3 /s
  dir /b *.mp4 /s
  dir /b *.jpg /s
  endlocal
  pause
  </code></pre>
  
  <p>1.) Is there anyway that I can exclude Microsoft and Windows (wallpapers, icons, sounds, etc) folder from my search?</p>
  
  <p>2.) How do I save the results in this output file (which is already created) C:\output.txt</p>
  
  <p>Thanks!</p>