Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Skip Last 10

$
0
0

I have a group of sub-directories and I'm trying to go into each sub-directory, keep the last 10 files (last 10 means most recent) and delete any other files.  I've been using other samples and code from the here to try and build this script, but I keep getting lost when it comes to trying to skip the last 10.

I can't find anything on how to accomplish this.  Anyone got any ideals?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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