Run hidden FFS with task scheduler

Get help for specific problems
Posts: 3
Joined: 14 May 2016

posedus

Win7 x64
I would like to run FFS (batch file, not as a win service) completely silent with task scheduler and I have been trying some combinations, but...the problem is the path to the batch file.

VBS file
Set oShell = CreateObject("WScript.Shell")
oShell.Run "c:\Program Files\FreeFileSync\Bin\FreeFileSync_x64.exe", 0

Direct path to the right exe in bin folder, not "c:\Program Files\FreeFileSync\FreeFileSync.exe"
It's ok, running hidden.

The problem is where to put argument to FFS, path, "c:\Doc\Try.ffs_batch"
I tried with some .bat file and vbs together, but not working with task scheduler ...?
I hope this is needed for many other users, thanks.
Posts: 3
Joined: 14 May 2016

posedus

Voila!
In TS, new basic task, add path to this vbs file,

Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run """c:\Program Files\FreeFileSync\Bin\FreeFileSync_x64.exe"" ""c:\Doc\Try.ffs_batch""", 0, True
Set objShell = Nothing

All is running hidden !