System variables

Discuss new features and functions

Anonymous

First off, awesome program, its so fast and clean and very easy to use.

However I was wondering if it was possible to make FFS compatible with system
variables like %homepath% and %systemdrive% so that it could be ran from the
startup script to backup any user who logs onto a computer without making a
specific batch file for each user?
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

There are already macros %time% and %date% in order to create time-stamped
directories.
I'll enhance this logic (target is v3.2) to include all environment variables
that are available.

Regards, Zenju

Anonymous

Zenju,
That would be amazing. With environment variables included, this software in
invaluable!

Also I am curious where paypal donations are to be sent?
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

>With environment variables included, this software in invaluable!

I also think this is an excellent idea! It opens up for significant
flexibility, e.g. when combined with temporal environment variables (SET
MyVar=C:\test) processin in *.bat files.

>Also I am curious where paypal donations are to be sent?

A paypal link is in FFS's about dialog ;)
Posts: 5
Joined: 28 Jan 2010

di2ger

I have a problem.
I made FreeCommanderSyncSettings.ffs_gui file.
Wrote this:



...
<FolderPairs>
<Pair>
<Left>%LeftDir%</Left>
<Right>%RightDir%</Right>
...


And then created bat file:



set LeftDir=%1
set RightDir=%2
FreeFileSync.exe FreeCommanderSyncSettings.ffs_gui


When FreeFileSync started, it works, but showing "%LeftDir%" instead of real
dir name.
Fix the bug, please!
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

This is no bug, but functionality. For example consider what would happen if
%date% would be replaced by 2010-20-01. The next synchronization would use the
same date instead of re-determining the variable.
However I'll include a preview that e.g. when mouse moves over the directory
input field the real value is shown (e..g C:\Test_%date%), but when dir-input
field has no focus it will show the final name (e..g C:\Test_2010-20-01)

Regards, Zenju

Anonymous

Hello Zenju, I am the original poster of this thread.

Thank you for adding the feature, how much $ (USD) would you like for donation
for the use of this software?
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

> how much $ (USD) would you like for donation
Great question! ;) I'd like to have so much that I can live from programming
Open-Source software! But to be realistic: It's totally up to you. :)

Regards, Zenju
Posts: 3
Joined: 7 Oct 2015

syllaslp

Hi!

I will report not a program BUG, but a HELP one.

Help says you have to write a folder name after the corresponding keyword, "-leftdir" and "-rightdir", inside a batch file, but IT DOESN'T SAY you have to write the side-indicator keyword EVERY TIME you specify a folder.

This command will fail:

FreeFileSync <ffs_gui file> -leftdir C:\Documents C:\Images -rightdir "F:\My documents" "F:\My images"

Now, the same command, after correction:

FreeFileSync <ffs_gui file> -leftdir C:\Documents -leftdir C:\Images -rightdir "F:\My documents" -rightdir "F:\My images"

Please, correct the help!