I need a vb.net program, when button click should move all the duplicate files from both c:\PA and c:\PE into c:\archive folder
Program should check the below things
1) check same filename(should omit the datetime stamp) exist or not ex: PE8252AD3L6, PE8323AE424
2) If the filename are of the same then should check the date
3)If filename and date are equal then, need to check the time(24 hr format)
All the old files should move into archive and new will remains in c:\PE & c:\PA folder.
I have elucidated in detail below.........................
My first folder filename format is PE8252AD3L6_13-Mar-06_0213.txt
PE8323AE424_14-May-06_1415.txt ----------- C:\PE folder
My Second folder filename formart is PA1523-5144_07-Feb_0828.txt
So if i put a file in c:\PE folder PE8252AD3L6_13-May-07_0513.txt, earlier date PE8252AD3L6_13-Mar-06_0213.txt
should go to the c:\arcive folder