DelLastXFiles - delete data chronologically

Draft | Approver: psycore

DelLastXFiles - delete data chronologically

DelLastXFiles deletes the last X files according to a specific file mask. The deletion is based on the file names.

download

example

There are 6 files with the following names in a directory:

  • A.txt
  • B.txt
  • C.txt
  • D.txt
  • E.txt
  • F.txt

If DelLastXFiles is executed with the following command, E.txt and F.txt are deleted:

C:\DelLastXFiles.exe -d *.txt C:\Verzeichnis 2

Parameters

DelLastXFiles 1.0 written by S. Heckhausen 2012
Use at your own risk!!!
------------------------------------------------------------------------
Usage: DelLastXFiles.exe -d <Mask> <Path> <count>
Example DelLastXFiles.exe -d *.txt c:\textfiles 9
Explanation: Deletes oldest 9 txt Files in c:\textfiles
en/software/dellastxfiles.txt · Last modified: 2023/11/17 02:53
CC Attribution-Noncommercial-Share Alike 4.0 International