Created
April 29, 2015 09:38
-
-
Save kayasax/47a9c74dd5069c27bbad to your computer and use it in GitHub Desktop.
Conserver les X fichiers plus récents d'un répertoire
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#combien d'éléments à sauvegarder ? | |
$limit=5 | |
ls $SourceDir |sort lastwritetime -desc |select -skip $limite # | remove-item |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment