title: how to mkvEXTRACT.exe specific tracks via batch?
body: <p>So here is the deal... I'm trying to extract specific tracks from mkv container via batch script using mkvextract.exe and the only way I can think about is to extract part of tracks via batch and rest of them manualy (this costs me a lot of time). Is there actualy a better, smarter, faster way to achieve this? All I would need to extract are:  </p>
  
  <p>all subtitle tracks with original names in folder "subs"<br>
  all attachments with original names in folder "atchmnts" <strong>(Update: I managed this one)</strong><br>
  and chapters track with original name in XML format in folder "xml" <strong>(Update: done thx to xDeathwing. tho, its not original filename as originaly requested, in this case its ok, coz there's always 1 xml file per mkv)</strong>  </p>
  
  <p>I am with this so far:</p>
  
  <pre><code>
  @echo off
  mkvextract.exe attachments "video.mkv" 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
  mkvextract.exe chapters "video.mkv" --redirect-output chapters.xml
  mkvextract.exe --ui-language en tracks "video.mkv" 0:"%CD%\%~sub.ass" <b>(Update: this one 
  actually working, but I can extract only one track instead of all of them and also its not 
  keeping original filename as given by mkvextract - "video_track4_eng.ass" - and also 
  I assume this will work only if track ID/language was defined during muxing process)</b>
  
  md "atchmnts"
  md "subs"
  md "xml"
  
  move "*.ttf" "atchmnts\"
  move "*.otf" "atchmnts\"
  move "*.png" "atchmnts\"
  
  move "*.srt" "subs\"
  move "*.ass" "subs\"
  move "*.sub" "subs\"
  
  move "*.xml" "xml\"
  
  pause
  exit
  </code></pre>  
  
  <p>I am aware of <a href="https://mkvtoolnix.download/doc/mkvextract.html" rel="nofollow">https://mkvtoolnix.download/doc/mkvextract.html</a>, but cant realy find what I looking for and fix my script.</p>