title: windows batch file script to copy every tenth file from a folder to another folder
body: <p>I have numerous text files in a directory and I want to select every tenth file (i.e. 10th, 20th, 30th, 40th, etc. file) according to name/alphabetical arrangement of the files and copy them to another folder.</p>
  
  <p>For example:</p>
  
  <p>I have a folder C:\documents\source\ that contains the files:</p>
  
  <pre><code>12.txt
  16.txt
  2007.txt
  2008.txt
  200865.txt
  2008616263.txt
  a.txt
  across.txt
  addition.txt
  album.txt
  American.txt
  an.txt
  and.txt
  April.txt
  article.txt
  Artist.txt
  at.txt
  Award.txt
  Awards.txt
  Awards64.txt
  Bad.txt
  Best.txt
  breakout.txt
  by.txt
  Canada.txt
  categories.txt
  Collaboration59.txt
  Dance.txt
  Dark.txt
  December.txt
  Diva.txt
  Duo.txt
  earned.txt
  embarked.txt
  Entertainment.txt
  entitled.txt
  Europe60.txt
  Favorite.txt
  Female.txt
  Fiasco.txt
  first.txt
  five.txt
  for.txt
  four.txt
  Girl.txt
  Glow.txt
  Gone.txt
  Good.txt
  Grammy.txt
  Group.txt
  he.txt
  headlining.txt
  her.txt
  in.txt
  including.txt
  Kanye.txt
  kicked.txt
  Lupe.txt
  Margeaux.txt
  Monster.txt
  MTV.txt
  Music.txt
  NERD.txt
  nominated.txt
  nominations.txt
  of.txt
  off.txt
  on.txt
  or.txt
  other.txt
  Performance.txt
  PopRock.txt
  R&amp;B.txt
  RapSung.txt
  receiving.txt
  Record.txt
  Recording.txt
  referred.txt
  Rihanna.txt
  second.txt
  September.txt
  several.txt
  she.txt
  shows.txt
  Single.txt
  Song.txt
  SoulR&amp;B.txt
  States.txt
  success.txt
  support.txt
  the.txt
  then.txt
  to.txt
  tour.txt
  United.txt
  Video.txt
  was.txt
  Watson.txt
  Weekly.txt
  West.txt
  which.txt
  winning.txt
  with.txt
  won.txt
  wrote.txt
  Year.txt
  Year58.txt
  </code></pre>
  
  <p>I want the files album.txt, Awards64.txt, December.txt, Fiasco.txt, Group.txt, Monster.txt, other.txt, second.txt, support.txt and West.txt copied to the folder C:\documents\output\</p>
  
  <p>How do I write a batch file that can achieve this goal?</p>