Batch file +sync folder
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

