Scheduler Batch File Not working

Discuss new features and functions
Posts: 2
Joined: 15 Jan 2024

DesH

I am using Win11 64 Bit with FFS 13.3 installed in Dir C:\Program Files\Admin Programs\FreeFileSync
I have tried using the batch file in Scheduler using spaces and Quotations,
"C:\Program Files\Admin Programs\FreeFileSync\FreeFileSync.exe"
Argument "C:\Users\xxx\Documents\MyDocBackupYtoS.ffs_batch"

I have also tried without spaces and quotations, with underscores.
I have made sure to invoke the exe and the argument, but NOTHING works.

It used to work perfectly in Win 10, but I have lost those setting I used, so cannot check them.
I think its possible than Win11 has some problem with your batch file , but I'm not sure.

The batch file will run if I double click it.
Any ideas?
Thanks
User avatar
Posts: 2453
Joined: 22 Aug 2012

Plerry

Under which credentials do you have the Task Scheduler run your FFS sync?
By default, that is the System user, and that user does not have access to your C:\Users\xxx folder to read the *.ffs_batch configuration, and also may not have access to the locations specified in your *.ffs_batch configuration.
You can change your scheduled task to run under specified user credentials, e.g. your xxx, that does have the necessary read or read/write access to all relevant locations.
Posts: 2
Joined: 15 Jan 2024

DesH

Aaah yes, that's the problem. I changed the Properties\Security permissions to the App folder and it works.
Thank you so much for your help. Much appreciated