Can someone please tell me why this first button opens a new lister and runs the sync, but the second button doesn't run the sync when the new lister opens. The first has hardcoded paths in it and the second picks up the paths from what is open at the time. Thank you.
This behaves as expected
set dual=on
set source=left
go new
[
Find SYNC FROM "c:\temp" TO "D:\temp" RECURSE COMPARE=newer HIDEUNAFFECTED
Copy SYNC
Set CLEARSYNC
]
This doesn't
set dual=on
set source=left
set dest=right
Go NEW=syncpanel {sourcepath} DUALPATH {destpath}
[
set source=left
set dest=right
Find SYNC FROM {sourcepath} TO {destpath} RECURSE COMPARE=newer HIDEUNAFFECTED
Copy SYNC
Set CLEARSYNC
]
That is the aim. I did rather want it to happen in a new lister though. I still haven't fathomed out why it doesn't work for me, but seems to for Alexander.
So how would you do this without opening a new lister, Leo? It seems that when the new lister opens {destpath} is getting lost. Perhaps that's the problem, though I still cannot explain why it seems to work for Alexander.
Edit: This appears to work
set source=left
set dest=right @set glob:s={sourcepath} @set glob:t={destpath}
Go NEW
[
Find SYNC FROM "{$glob:s}" TO "{$glob:t}" RECURSE COMPARE=newer HIDEUNAFFECTED
Copy SYNC
Set CLEARSYNC
]