Inhaltsverzeichnis

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:

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