RealTimeSync and Windows error code 2

Get help for specific problems
Posts: 8
Joined: 20 Aug 2012

pitibalrog

Hi,

First, Thank you for your job on Free File Sync!

I'm using FFS portable version with Liberkey. I can't be sure of the Drive
letter of this key. So i configure a script who set an env variable
%FFSYNC_DIR% at the insertion of the usb key.

In RealTimeSync windows I set the command line as this:
%FFSYNC_DIR%\FreeFileSync.exe
%FFSYNC_DIR%\Scripts\FullExternalBackup.ffs_batch.

This command line just work well in cmd window but FreeFileSync popup a
Windows error code 2: File not found

Are environment variables handle in command line input of RealTimeSync?
User avatar
Site Admin
Posts: 7307
Joined: 9 Dec 2007

Zenju

> configure a script who set an env variable %FFSYNC_DIR% at the insertion of
the usb key.


Maybe you could make use of FFS's ability to refer to a volume by name? See
helpfile -> Variable drive letters


> Are environment variables handle in command line input of RealTimeSync?


Currently not. I'll see to add support for them!
Posts: 8
Joined: 20 Aug 2012

pitibalrog

Thank you for your answer. Yes I can use volume by name but is it supported in
command line input of RealTimeSync?


> Currently not. I'll see to add support for them!



It'll be great! :-)
User avatar
Site Admin
Posts: 7307
Joined: 9 Dec 2007

Zenju

> but is it supported in command line input of RealTimeSync?


Unfortunately it is not. But according to your scenario it looks like it
should be supported. I'll see what I can do :)
Posts: 8
Joined: 20 Aug 2012

pitibalrog

OK, it will be great that all filesystem input act the same way: and
%system_variable%

This input are:
- FFS_GUI:
- Left and right directories
- Deletion handling (with versioning option)
- External applications Command Line in Global settings
- FFS_BATCH:
- Directories
- Filter (Include, Exclude)
- Deletion handling (with versioning option) in Synchronization settings
- Log files folder in Batch settings
- FFS_REAL:
- Folders to watch
- Command line

I know it's a lot of input but I do believe that when you done a generic
function for one it would be easier for the others.

Again, thank you for your work, and your time spend on this project! :-)
User avatar
Site Admin
Posts: 7307
Joined: 9 Dec 2007

Zenju

I've added full support for environment (and internal) macros for:
- on completion
-RTS command
-external applications

I still don't know what to do with the "reference volume by name" feature. It
would be nice if it were also accepted everywhere. But the syntax "" is not
special enough and could accidentally hit on an unrelated file or folder name
containing brackets. For directory input fields this is not a problem, since
the "" is only expected at the beginning of the path, thous no ambiguity
possible. For all other fields, like "on completion, RTS command and external
applications" it could appear somewhere within the command line. A feasible
approach would be to harmonize syntax with macros like "%%", but it just looks
weird and less elegant. Yet a solution to be found...
Posts: 8
Joined: 20 Aug 2012

pitibalrog

Thank you for this new features. I'll try that!!!!

I understand the issue for RTS command. But you can detect if is at the
begining of the input text. If not, it's not a volume name.
An other choice would be to ad a checkbox near the input text to
enable/disable volume name detection

I think an harmonize syntax would be great but it's not easy to have the
perfect solution. Your "%%" solution is not bad but you have to keep the
backward compatibility too.
Posts: 8
Joined: 20 Aug 2012

pitibalrog

I update to the 5.6 FFS but I have the same problem. I checked the changelog
but I don't find this change. Is it a non public version yet?
User avatar
Site Admin
Posts: 7307
Joined: 9 Dec 2007

Zenju

I released v5.7 just a couple of minutes ago.
Posts: 8
Joined: 20 Aug 2012

pitibalrog

OK, I'm to impatient ;-)
Posts: 8
Joined: 20 Aug 2012

pitibalrog

It works fine! Thank you for this update! :)
User avatar
Site Admin
Posts: 7307
Joined: 9 Dec 2007

Zenju

Thanks for your donation! :)
Posts: 8
Joined: 20 Aug 2012

pitibalrog

You're welcome! You deserve it, and much more ;-)