How to avoid having to push the Start button in RealTimeSync?

Get help for specific problems
Posts: 65
Joined: 8 Jun 2023

Synchronizator

So I have created a task in FreeFileSync, exported it to .ffs_batch file, imported that file to RealTimeSync, executed it by pressing Start - and it works: i.e. my backup folder got updated to the state in which the original is and keeps being updated

But now my question is: how do I start his monitoring and updating process automatically whenever my Windows 10 Enterprise 20H2 starts?

I do want to keep clicking that Start button - all I wanna see is an icon in the Tray notification to know if RealTimeSync is running and have 100% certainty that it is doing what it would be doing if I had opened its window and pressed that button myself
User avatar
Posts: 4059
Joined: 11 Jun 2019

xCSxXenon

Save the RTS configuration and put it in your startup folder

%homepath%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Posts: 65
Joined: 8 Jun 2023

Synchronizator

So it is as simple as putting in

C:\Users\YOUR-USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

a shortcut to a BAT file with content of e.g.
start "" "C:\Program Files\FreeFileSync\RealTimeSync.exe" "C:\MY SCRIPTS\FreeFileSync Jobs\test of automation.ffs_batch"
while also making sure that this LNK file leading to that batch file has its

Properties > Shortcut > Advanced Run as administrator

turned on to avoid blockades?
User avatar
Posts: 4059
Joined: 11 Jun 2019

xCSxXenon

No, you use the .ffs_batch configuration to create a RTS configuration. The RTS configuration will be saved as a .ffs_real file

https://freefilesync.org/manual.php?topic=realtimesync
Posts: 65
Joined: 8 Jun 2023

Synchronizator

So I have now

C:\Users\YOUR-USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\test of automation.ffs_real.lnk

and it does start RealTimeSync wit that job of mine. But despite turning on
[...]
Properties > Shortcut > Advanced Run as administrator
[...] Synchronizator, 08 Jun 2023, 16:10
for it I get the
ERROR_ELEVATION_REQUIRED: The requested operation requires elevation. [AdjustTokenPrivileges(SeSecurityPrivilege)]
blockade info
Posts: 65
Joined: 8 Jun 2023

Synchronizator

What has worked for me was going to

C:\Program Files\FreeFileSync\RealTimeSync.exe

and selecting

Properties > Compatibility > Settings > Run this program as an administrator

and then putting in the Start system folder an LNK leading to BAT which runs my FFS_REAL file

Because I can either do the above - or put in Start an LNK leading directly to FFS_REAL file, which does not work [i.e. the pogram does not start automatically after Windows boots up]. The same thing happens [i.e. RealTimeSync does not starts with Windows] if use such Registry hack
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]

"C:\\Program Files\\FreeFileSync\\RealTimeSync.exe"="RUNASADMIN"
which approach when utilized by me for every other program so far has no issue of running affected software through shortcut put in Start folder


So to sum up:

A] The help info at https://freefilesync.org/manual.php?topic=realtimesync should have a small summary at its beginning like:

1] Use FreeFileSync to create FFS_BATCH file with jobs

2] Import it to RealTimeSync

3] Export them to FFS_REAL file

4] Put shortcut to it in the StartUp folder

This way discussions like this one and that one viewtopic.php?t=1124 could be most likely avoided


B] Doing the above point A does not work for me
Posts: 65
Joined: 8 Jun 2023

Synchronizator

[...]
B] Doing the above point A does not work for me Synchronizator, 12 Jun 2023, 10:28
Yes. When I deselect

Tools > Options > Copy locked files (requires administrator rights)
Tools > Options > Copy DACL, SACL, Owner, Group (requires administrator rights)


I can then relay on having just

C:\Users\YOUR-USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\test of automation.ffs_real.lnk

without a BAT intermediary executing it. But then RTS gets blocked when trying to update e.g.

C:\MY PORTABLES\Mp3tag\Mp3tagError.log

and thus after all I do need to use such BAT scripted workaround


So thank you both for you help, as I am now able to operate - but the last issue of this conundrum would be to have an explenation for why
[...]
RealTimeSync does not starts with Windows] if use such Registry hack
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]

"C:\\Program Files\\FreeFileSync\\RealTimeSync.exe"="RUNASADMIN"
which approach when utilized by me for every other program so far has no issue of running affected software through shortcut put in Start folder
[...] Synchronizator, 12 Jun 2023, 10:28
which forces me to use less elegant solution
[...]
going to

C:\Program Files\FreeFileSync\RealTimeSync.exe

and selecting

Properties > Compatibility > Settings > Run this program as an administrator
[...] Synchronizator, 12 Jun 2023, 10:28