I am trying to create a script to compare the the files between source folder and the destination folder and I have achieved this with the given code. But before copying files from the source to the destination folder, I want to keep a copy of the destination folder. Can anyone please help to modify the codes?
I’d recommend to use the shadow copy service to keep older version of files you update or replace with newer versions. No need to re-invent the wheel again.
Regardless of that … when you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.