I have a client with two Win7 Pro desktops. Both are set to monitor 4 folders on their local machines, and replicate any new files to a shared folder on a Qnap NAS.
I've created the FreeFileSync job, and it runs fine manually.
I've created the batch file, and am using the "C:\Program Files\FreeFileSync\FreeFileSync.exe" "C:\users\username\my documents\Batchrun.ffs_batch" method as a startup item, set to run as admin.
If I run it on startup, the system tray icon is grey, and it shows as 'waiting until all directories are available'.
However, ff I run the same batch file manually, it runs and synchronises perfectly.
Can you suggest where I'm going wrong?
RealTimeSync not working when running as scheduled job
- Posts: 2
- Joined: 13 Aug 2014
- Site Admin
- Posts: 7211
- Joined: 9 Dec 2007
Probably same issue like:
viewtopic.php?t=220
viewtopic.php?t=220
- Posts: 2
- Joined: 13 Aug 2014
Hi Zenju,
It's not syncing to a mapped network drive, it's syncing from a local folder path, to a UNC path.
The only errors that are showing in the logs are errors synchronising PST files -
[10:08:20] Error: Cannot read file "C:\Users\username\Documents\Outlook Files\pstname.pst".
The file is locked by another process:
Microsoft Outlook, "C:\Program Files (x86)\Microsoft Office\Office14\OUTLOOK.EXE"
Cannot access the Volume Shadow Copy Service.
The caller does not have sufficient backup privileges or is not an administrator.
However, this only happens when it's running from the startup folder shortcut. If I run the batch file manually, it runs just fine.
Both the batch file, the FreeFileSync.exe and the RealTimeSync.exe application are set to run with administrative privileges, and UAC is disabled.
I'm just in the process of checking permissions, but it looks like the user has at least modify permissions to the folder and applications...
It's not syncing to a mapped network drive, it's syncing from a local folder path, to a UNC path.
The only errors that are showing in the logs are errors synchronising PST files -
[10:08:20] Error: Cannot read file "C:\Users\username\Documents\Outlook Files\pstname.pst".
The file is locked by another process:
Microsoft Outlook, "C:\Program Files (x86)\Microsoft Office\Office14\OUTLOOK.EXE"
Cannot access the Volume Shadow Copy Service.
The caller does not have sufficient backup privileges or is not an administrator.
However, this only happens when it's running from the startup folder shortcut. If I run the batch file manually, it runs just fine.
Both the batch file, the FreeFileSync.exe and the RealTimeSync.exe application are set to run with administrative privileges, and UAC is disabled.
I'm just in the process of checking permissions, but it looks like the user has at least modify permissions to the folder and applications...
- Posts: 8
- Joined: 20 Feb 2021
@cnatkinsI have a client with two Win7 Pro desktops. Both are set to monitor 4 folders on their local machines, and replicate any new files to a shared folder on a Qnap NAS.
I've created the FreeFileSync job, and it runs fine manually.
I've created the batch file, and am using the "C:\Program Files\FreeFileSync\FreeFileSync.exe" "C:\users\username\my documents\Batchrun.ffs_batch" method as a startup item, set to run as admin.
If I run it on startup, the system tray icon is grey, and it shows as 'waiting until all directories are available'.
However, ff I run the same batch file manually, it runs and synchronises perfectly.
Can you suggest where I'm going wrong? cnatkins, 13 Aug 2014, 09:13
How do you get the batch file to "set to run as admin" ? I am using Windows Task Scheduler
thanks,
sj