Page 1 of 1

syncing batch file

Posted: 24 Apr 2011 20:43
by scienceguru1.bat
i want to create a batch file that syncs multiple folders, and i don't want to use the copy command, as that could create duplicates or errors (quessing). i also don't want to have to make an extra folder to sync. please help.

Re: syncing batch file

Posted: 25 Apr 2011 05:48
by aGerman
You should have a look at ROBOCOPY.

Regards
aGerman

Re: syncing batch file

Posted: 25 Apr 2011 06:09
by scienceguru1.bat
thanks, it should work

Re: syncing batch file

Posted: 28 Apr 2011 22:51
by shajanjp
I think 'CD' command will be helpful to you...
:)

Re: syncing batch file

Posted: 29 Apr 2011 13:40
by scienceguru1.bat
as in:

Code: Select all

Z:
cd "Z:\..."
robocopy "." "C:......" /mir


?????

confused, but thanks for the idea. i think:

[code]@echo off
robocopy "Z:/..." "C:/users........" /mir[\code]

would work much better. aGerman, or other expert, what do you think?