Can't Sync drive to drive?

Get help for specific problems
Posts: 2
Joined: 25 Feb 2014

tsaw

I used to use a program that if you used source: F:\ and destination: G:\ the program would Sync the drives root and all directories/sub directories. But when I try using the above in FreeFileSync, I get an error message that says:
Cannot set directory lock for "F:\".

Cannot write file "F:\sync.ffs_lock".

Error Code 5: Access is denied. (CreateFile

If I choose a source directory on F:\ and an Existing dir on G:\ , it works as expected.
How can I Sync the entire drive, without manually adding and creating all the directories?
User avatar
Posts: 2251
Joined: 22 Aug 2012

Plerry

The message seems clear enough: you don't seem to have the proper rights to write "F:\sync.ffs_lock".
Did you try running FFS with Admin rights?
Posts: 2
Joined: 25 Feb 2014

tsaw

Yes you are right. Running as Admin solved the problem.
Posts: 5
Joined: 27 Oct 2012

adriensf

Also, if you run the synchronization using the batch file created by FFS, then you can't "Run as Admin" because this option is not available in the right-click menu.
What you need to do in that case is to set the FreeFileSync program itself to run as Admin, not the batch. To do so:

- Go in the folder where FFS is installed (on my computer it's C:\Program Files\FreeFileSync\)
- Right click on the FreeFileSync.exe file (the one with the two green arrows)
- Properties
- Compatibility tab
- Check the box "Run this porgram as an administrator"
- Click Apply
- Click Ok

Now you should be able to double-click the batch file without having the error you mentioned.