Restore from system tray hides RealTimeSync

Get help for specific problems
Posts: 74
Joined: 17 Mar 2008

mfreedberg

We are starting RealTimeSync as part of a user login process - a start menu
Startup folder items runs a VBScript that checks some settings and then calls
RealTimeSync - working very well. Once the user logs in, the script runs,
RealTimeSync runs in the system tray, but if the user right-clicks on the
RealTimeSync system tray icon and chooses "Restore", RealTimeSync does not
come to the front, is still listed as running in Task Manager, but does not
trigger on the schedule (or appears not to trigger, still testing this, but am
99% positive it does not trigger).

Known issue or new one?
User avatar
Site Admin
Posts: 7051
Joined: 9 Dec 2007

Zenju

Seems to be a problem related to the VB script. Can you provide me with a
shortened version of this script and a few steps how to reproduce this issue?
Posts: 74
Joined: 17 Mar 2008

mfreedberg

Here are the relevant lines:
FFS_Command = ToolsFolder & "\FreeFileSync\RealTimeSync.exe " & ToolsFolder &
"\FreeFileSync\GSKSyncJobW.ffs_real"

objShell.Run FFS_Command, 0,False

I think that the fact we are starting RealTimeSync as a hidden window is the
error here in the objShell.run method, what would you recommend as the window
option to start RealTimeSync in the System Tray and have the restore work
correctly, just start it as a "normal" window?

See the options for the Run method here:
https://msdn.microsoft.com/en-us/library/d5fk67ky%28VS.85%29.aspx
User avatar
Site Admin
Posts: 7051
Joined: 9 Dec 2007

Zenju

> the fact we are starting RealTimeSync as a hidden window is the error here
Correct. Within the source code I try to show the window, but this has no
effect as the VB script has a higher priority in this case.

> what would you recommend just start it as a "normal" window?
Yes, it's really that easy in this case. RTS minimizes automatically when it
is passed a script as argument. So the following should do:

objShell.Run FFS_Command, 1,False
Posts: 74
Joined: 17 Mar 2008

mfreedberg

Perfect: "RTS minimizes automatically when it is passed a script as argument"
-- that will work for us, we'll update the script, test, and let you know if
all is well (and I expect it will be.)

Thank you again for your support and product - great tool!!