Batch file +sync folder

Hi,

I have a batch file that syncs 2 folders .. The problem is that part sits in a *.bat file and then the rest gets typed into command prompt.

Code:

sync.bat

XCOPY "%1" "%2" /D /I %3
XCOPY "%2" "%1" /D /I %3

Then type into command prompt:

sync C:\test D:\test /S

I have been trying to put all the code into a single batch file so one can double click it and have it perfom the sync.

Does anyone know how this can be done?

Thanks

Bob
[527 byte] By [bob_the_builder] at [2007-11-19 23:15:57]
# 1 Re: Batch file +sync folder
Well, you would have to make a recursive folder search to compare the files but that cannot be done in DOS. You will have to use a different language than DOS. Sorry, you won't be able to sync perfectly in DOS.
PeejAvery at 2007-11-10 3:39:25 >