Hello
Is it possible to add a folder to sync via the Windows Explorer context menu (cfr. AllwaySync explorer integration)?
Best regards,
Wim.
Add folder to FFS via Windows Explorer context menu (right click)?
- Posts: 8
- Joined: 9 Apr 2015
- Site Admin
- Posts: 7211
- Joined: 9 Dec 2007
Can you elaborate a bit what you would want to see? E.g. a new Explorer context menu option for a single folder like "Open with FreeFileSync" or a new option for selecting multiple folders and opening them?
- Posts: 8
- Joined: 9 Apr 2015
This resembles more or less what I mean: http://www.nextofwindows.com/sync-any-folder-to-skydrive-right-from-explorer-context-menu-with-this-shell-extension/
In my setup, a subfolder "SyncFiles" in network folder X is synced to a subfolder X in local folder %userprofile%\SyncFiles.
It would be user friendly to be able to add a folder pair Y\SyncFiles - %userprofile%\SyncFiles\Y by right clicking Y and choosing "Enable Sync". This would create the directories and add the folder pair to the batch xml config file.
I don't fully understand if Freefilesync currently has command line options to add/remove folder pairs, as this would make context menu extension quite easy to implement as described above.
In case Y already exists in %userprofile%\SyncFiles, a merge or rename option can be offered as described in http://www.nextofwindows.com/sync-any-folder-to-skydrive-right-from-explorer-context-menu-with-this-shell-extension/
Finally, a "Disable Sync" option in the Context menu would remove the folder pair in the xml config while leaving the folders in place (to avoid data loss).
Allwaysync implements this integration as well, although I haven't tried it yet. Too happy with FFS :-)
Makes sense?
Cheers
Wim
In my setup, a subfolder "SyncFiles" in network folder X is synced to a subfolder X in local folder %userprofile%\SyncFiles.
It would be user friendly to be able to add a folder pair Y\SyncFiles - %userprofile%\SyncFiles\Y by right clicking Y and choosing "Enable Sync". This would create the directories and add the folder pair to the batch xml config file.
I don't fully understand if Freefilesync currently has command line options to add/remove folder pairs, as this would make context menu extension quite easy to implement as described above.
In case Y already exists in %userprofile%\SyncFiles, a merge or rename option can be offered as described in http://www.nextofwindows.com/sync-any-folder-to-skydrive-right-from-explorer-context-menu-with-this-shell-extension/
Finally, a "Disable Sync" option in the Context menu would remove the folder pair in the xml config while leaving the folders in place (to avoid data loss).
Allwaysync implements this integration as well, although I haven't tried it yet. Too happy with FFS :-)
Makes sense?
Cheers
Wim
- Site Admin
- Posts: 7211
- Joined: 9 Dec 2007
Is this feature request about starting some automatic synchronization (similar to what RealtimeSync does, but with a single context menu) or about simplifying the setup of a usual FreeFileSync sync config by using the Explorer context menu?
- Posts: 2451
- Joined: 22 Aug 2012
I suppose the folder for which you want to select the context item SyncWithFFS
will be the source/left part of the FFS folder pair.
As the destination/right location will be user dependent, a standard solution does not seem possible, and customization would be required anyway.
You can add a context-menu item easily yourself, e.g. as described here:
http://www.howtogeek.com/howto/windows/add-the-command-prompt-to-the-windows-explorer-right-click-menu/
Instead of naming and referring to the Command Prompt (as in the example), you can name it e.g. SynWithFFS and refere to a batch/cmd file while passing the folder name via %1.
In the batch/cmd script you first need to determine the actual folder-name and then call FFS via:
for %%a in (%1) do set YourRightDir=%%~na%%~xa
[FullPathToFFS]\FreeFileSync.exe -leftdir %1 -rightdir [FullPathToRightDir\%YourRightDir%
Above code does not (yet) deal with any spaces being used in path or folder-name.
will be the source/left part of the FFS folder pair.
As the destination/right location will be user dependent, a standard solution does not seem possible, and customization would be required anyway.
You can add a context-menu item easily yourself, e.g. as described here:
http://www.howtogeek.com/howto/windows/add-the-command-prompt-to-the-windows-explorer-right-click-menu/
Instead of naming and referring to the Command Prompt (as in the example), you can name it e.g. SynWithFFS and refere to a batch/cmd file while passing the folder name via %1.
In the batch/cmd script you first need to determine the actual folder-name and then call FFS via:
for %%a in (%1) do set YourRightDir=%%~na%%~xa
[FullPathToFFS]\FreeFileSync.exe -leftdir %1 -rightdir [FullPathToRightDir\%YourRightDir%
Above code does not (yet) deal with any spaces being used in path or folder-name.
- Posts: 8
- Joined: 9 Apr 2015
Zenju,Is this feature request about starting some automatic synchronization (similar to what RealtimeSync does, but with a single context menu) or about simplifying the setup of a usual FreeFileSync sync config by using the Explorer context menu?Zenju
The use case I have in mind is that when I right click a folder (allowing spaces in folder names), I can choose Sync with FFS in the context menu to launch a cmd that:
- runs FFS with params to set up a folder pair
- runs RealtimeSync with params to add the folder pair to the watched folders
When I right click a folder and choose Stop Sync, I launch a cmd to:
- runs FFS with params to remove the folder pair in the config
- runc RTS with params to remove the folders from the watched folders
Not needed that FFS knows about my naming convention, just asking if FFS and RTS could accept params to add/remove folder pairs.
Cheers,
Wim
- Posts: 8
- Joined: 9 Apr 2015
I managed to deal with quotes using below script.
How do I merge the new folder pair with the existing pairs instead of replacing them (as I understand from the help file)?
How can I remove a folder pair via the command line? If not possible, can you consider the feature?
Thanks,
Wim.
Set SyncPath=%*
Set GetFolderTemp=%SyncPath%
:GetFolder
FOR /F "tokens=1,* delims=\" %%1 IN ("%GetFolderTemp%") do (
set SyncFolder=%%1
set GetFolderTemp=%%2
)
if not "a%GetFolderTemp%"=="a" goto :GetFolder
mkdir "%SyncPath%\SyncFiles"
mkdir "%userprofile%\Syncfiles\%SyncFolder%"
freeFileSync.exe -leftdir "%SyncPath%\SyncFiles" -rightdir "%userprofile%\Syncfiles\%SyncFolder%"
How do I merge the new folder pair with the existing pairs instead of replacing them (as I understand from the help file)?
How can I remove a folder pair via the command line? If not possible, can you consider the feature?
Thanks,
Wim.
Set SyncPath=%*
Set GetFolderTemp=%SyncPath%
:GetFolder
FOR /F "tokens=1,* delims=\" %%1 IN ("%GetFolderTemp%") do (
set SyncFolder=%%1
set GetFolderTemp=%%2
)
if not "a%GetFolderTemp%"=="a" goto :GetFolder
mkdir "%SyncPath%\SyncFiles"
mkdir "%userprofile%\Syncfiles\%SyncFolder%"
freeFileSync.exe -leftdir "%SyncPath%\SyncFiles" -rightdir "%userprofile%\Syncfiles\%SyncFolder%"