need to delete files
Hi,
I need to delete some files in a specific folder.
Some files are resaved with brackects and I need to keep the file with the
highest number in the brackect and delete the one that existed before.
For example If I have the following files in folder "Myfolder"
Myfile1.xls
Myfile2.xls
Myfile3.xls
Myfile2(2).xls
Myfile3(2).xls
Myfile3(3).xls
I should end up with
Myfile1.xls
Myfile2(2).xls
Myfile3(3).xls
Any idea?
Dan
|