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
windows scheduler not able to start
- Posts: 6
- Joined: 4 Sep 2022
- Posts: 4056
- Joined: 11 Jun 2019
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
- Posts: 2451
- Joined: 22 Aug 2012
> 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.
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
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
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
I am using windows Server 2019
- Posts: 2451
- Joined: 22 Aug 2012
> ... 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.
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
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
Program /script :C:\Program Files\FreeFileSync\FreeFileSync.exe
Add Arguments:"C:\Users\Documents\batch.ffs_batch"
Trigger :Every 15 mts for duration Indefinitely
Please
- Posts: 2451
- Joined: 22 Aug 2012
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.
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
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
I am able to run FFS on Current logged on user by double clicking