I have the following command to copy test0514.pgp to test.pgp. But, test0512.pgp
has the latest timestamp and in fact it copy test0512.pgp to test.pgp. Can I check the name of the file and copy the max date based on the name? Thanks.
FOR /F "tokens=*" %%I IN ('DIR c:\test*.gpg /B /O:-D') DO COPY/y "c:\%%I" c:\test.gpg & EXIT