windows scheduler not able to start

Get help for specific problems
Posts: 6
Joined: 4 Sep 2022

mohamed.arief

I have multiple batch file in single windows task scheduler but when click run .

It seems not working .Is there any alternate way? if i click the batch file its running.

I need to make it automate for all our project nas data copy to one server.

Kindly advise
User avatar
Posts: 4056
Joined: 11 Jun 2019

xCSxXenon

If you want periodic syncing, task scheduler is the only way to go, with native Windows utilities. I would figure out why your task doesn't work. Start with a simple command while you're debugging the task. So, instead of having it trigger and start the sync, you can just have it run like "cmd /c winver", which opens the Windows Version information. Makes troubleshooting a little nicer
User avatar
Posts: 2451
Joined: 22 Aug 2012

Plerry

> if i click the batch file its running
From the Windows GUI, this is normal behavior, as *.ffs_batch (and *.ffsbatch) files are associated with FFS.

However, this is different for a command-line or Task Schedulaer task.
Not clear from your (mohamed.arief's) initial posting:
If you want to run one or more FFS syncs via the Task Scheduler, in the command line you specify, you first need to invoke FFS, and then specify the sync configuration(s) to be run by FFS, not just the sync configurations.
See here.
Posts: 6
Joined: 4 Sep 2022

mohamed.arief

Hi Plerry,

I just created basic task and Mapped this batch file to run every 15 mts .But windows task scheduler not starting automatically.But same batch file if i double click its running .Please advise
Posts: 6
Joined: 4 Sep 2022

mohamed.arief

I am using windows Server 2019
User avatar
Posts: 2451
Joined: 22 Aug 2012

Plerry

> ... and Mapped this batch file to run every 15 mts

How do yo run the batch file every 15 mins?
In the Task Scheduler, this must be done via a command line instruction that invokes FFS and specifies which (batch) sync configuration(s) to run.
See my previous reply.
Posts: 6
Joined: 4 Sep 2022

mohamed.arief

Action:Start Program
Program /script :C:\Program Files\FreeFileSync\FreeFileSync.exe
Add Arguments:"C:\Users\Documents\batch.ffs_batch"
Trigger :Every 15 mts for duration Indefinitely

Please
User avatar
Posts: 2451
Joined: 22 Aug 2012

Plerry

I have no experience with Windows Server 2019, but I suppose it works similar to the Task Scheduler in Windows (10) Prof or Home.
There it important that the [user] under which credentials the scheduled task is run:
• Has at least read- and execute-access to C:\Program Files\FreeFileSync\FreeFileSync.exe
• Has at least read-access to C:\Users\Documents\batch.ffs_batch
(are you sure this is correct? Should it not be C:\Users\[user]\Documents\batch.ffs_batch ?)
• Has at least read-access to locations it only needs to read, and read/write-access to locations it needs to be able to write to.

If you would run FFS as the System user, it is likely not able to write log-files.

Note that if you double-click your batch.ffs_batch file, FFS runs that sync-config as the presently logged-in user, which may be different from the [user] you define in the Task Scheduler for your sync task.
Posts: 6
Joined: 4 Sep 2022

mohamed.arief

C:\Users\[user]\Documents\batch.ffs_batch ? it is like this only. for security i removed that user name

I am able to run FFS on Current logged on user by double clicking