• Here is why there were (4) files kept when I only wanted to keep (2) as specified using param /AgvNumber:3=2 in the Command:

    For m = 4 To UBOUND(arrFileList)

    When I change this line of code to use the input variable of the number of files to keep, it works as expected.

    For m = varNumber To UBOUND(arrFileList)

    This is a really nice tool and an easy implementation.

    Thanks again