Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

How to select every nth file from a folder.

$
0
0

Hello all,

I am a super power shell newbie, and if there is another way to do something similar to this that anyone knows please feel free to suggest. We are working on a scientific project, and are receiving a folder full of datasheets in the form of thousands of PDF's. We want to take a subsample of the files. I know it is possible to choose a certain number of files randomly, but unfortunately that will not work statistically for us. What I would like to do is select the 1st, 11th, 21st so on until the end of the files so that I can move them to another folder. Does anyone have any pointers about doing this?

Thanks!

--Evan




Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>