Forum Discussion
dave36333
Jun 16, 2021Copper Contributor
RETRIEVE Every 10th file in a folder.
I have a folder with 100 files. How can I get file 10, 20, 30, 40, 50, 60 ........100. Every 10th file in the folder.
I want to be able to switch to every X file with X as an integer from 1 to 10. Thank you
- SchnittlauchSteel ContributorHi dave36333 ,
this is a very quick and dirty option.
Is this quick enough for you?
$Test2 = dir C:\Users\Florian\Desktop\
$Test2[9,19,29,39,49,59,69,79,89,99]
(Don't forget the count starts at 0)
Best regards,
Schnittlauch
"First, No system is safe. Second, Aim for the impossible. Third, no Backup, no Mercy" - Schnittlauch
My answer helped you? Don't forget to leave a like. Also mark the answer as solved when your problem is solved. 🙂