Can I have your help & expertise in creating a batch file for the below please
I have below files in a folder \\abcdef123\test\root\child\source
AC_FDM_TREE_EXTRACT_20161216203034.touch
AC_FDM_TREE_EXTRACT_20170118204420.touch
AC_FDM_TREE_EXTRACT_20170214204730.touch
PS_Z_VT_SUPER_TREE_20161216203034.txt
PS_Z_VT_SUPER_TREE_20170118204420.txt
PS_Z_VT_SUPER_TREE_20170214204730.txt
I would like to dynamically delete all files except for the current month. ie., If YYYYMM is the current month, delete all files(do not include sub folders) not equal to YYYYMM.*
It is unlikely that files will be generated with future dates. But, if it is a quick win, may be say delete all files before current month is even better.