I am having source and destination folder locations...I have to check if the file in source is empty or not exists then notify(for which I have the code). What I have to do is delete the file in destination location if any exists and copy form source to destination by renaming the file. I am having multiple files in the source and have to do same for all the files.
Files in source are like:
and in destination, it should be copied as:
Please help me, Thank you !!