Cannot write file...

Get help for specific problems
Posts: 1
Joined: 8 Aug 2023

vb4me

Good morning,

I have two batch files to copy source code and SQL bak files to a separate directory. These batch file runs at startup and yield the following error messages

Cannot write file "C:\ProgramData\Microsoft\Windows\Start
Menu\Programs\Startup\BackupDB.ffs_batch.f833.tmp".
Access is denied. [CreateFile]

Cannot write file "C:\ProgramData\Microsoft\Windows\Start
Menu\Programs\Startup\VBDB.ffs_batch.f833.tmp"
Access is denied. [CreateFile]

What can I do to fix this?

I have the latest Donation version of FreeFileSync.
User avatar
Posts: 4867
Joined: 11 Jun 2019

xCSxXenon

What you describe probably shouldn't be trying to write to those locations in the first place. Double check your locations in the configuration because it looks like you are trying to write to the Windows startup folder
User avatar
Site Admin
Posts: 7506
Joined: 9 Dec 2007

Zenju

The ffs_batch file format has slightly changed in the latest version, and FFS tries to automatically convert to the newer version, which fails in this case.
User avatar
Posts: 4867
Joined: 11 Jun 2019

xCSxXenon

So is the best solution to open those batch configurations in FFS, re-save them, and then move the newly saved version to the startup folder to overwrite the old version?
User avatar
Site Admin
Posts: 7506
Joined: 9 Dec 2007

Zenju

Yes, or just open them in FFS started with admin rights.