Let me preface this question by saying that I am relatively new to writing batch files, so I apologize if my question seems remedial.
I’m trying to move files from a directory to a shared drive that I have mapped. I know that using “XCOPY c:\etc.. z:\etc.. /Y” will copy everything from one place to another, but what I don’t want to do is overwrite every file every time. Is there a way to copy just the files that are not located in the destination directory?
solution 1 :
should work……….
solution 2
working. tested
2 folders have the same files , lets try to copy.
lets create 1 new file
lets copy :