Unable to create log file in batch mode

Get help for specific problems
Posts: 3
Joined: 31 Oct 2014

bob-125

Hi,

I have a batch job where "Save Log" in set to on.

If I use:

"C:\Program Files\FreeFileSync\FreeFileSync.exe" "Test.ffs_batch"

that works, assuming Test.ffs_batch is in the current directory.

If I use an absolute pathname:

"C:\Program Files\FreeFileSync\FreeFileSync.exe" "D:/FreeFileSync/Test.ffs_batch"

that fails, FreeFileSync trying to use a mangled name for the log file.

Thanks for a great product anyway!
User avatar
Site Admin
Posts: 7282
Joined: 9 Dec 2007

Zenju

What were the exact error messages you saw and the FFS configuration you used?
Posts: 3
Joined: 31 Oct 2014

bob-125

I get:

Cannot write file "d:\m1\FreeFileSync\Log\D:/m1/FreeFileSync/Test 2014-10-31 13571.log"

Error Code 123: The filename .... is incorrect.

What happens is that the full path is attached to the log directory, rather than just the name of the log file.

It should be just:

"d:\m1\FreeFileSync\Log\Test 2014-10-31 13571.log"

I attach the config file.
Attachments
Test.ffs_batch
(1.78 KiB) Downloaded 144 times
User avatar
Site Admin
Posts: 7282
Joined: 9 Dec 2007

Zenju

The problem seems to be related to the "/" characters. How do you start the ffs_batch job? Are you using "/" instead of "\" somewhere as path separator?
User avatar
Site Admin
Posts: 7282
Joined: 9 Dec 2007

Zenju

The problem seems to be related to the "/" characters. How do you start the ffs_batch job? Are you using "/" instead of "\" somewhere as path separator?Zenju
Can answer this myself, it's in your first post, this is the problem:

> "C:\Program Files\FreeFileSync\FreeFileSync.exe" "D:/FreeFileSync/Test.ffs_batch"
Posts: 3
Joined: 31 Oct 2014

bob-125

Ok, got it!

That's because of my Unix background, I often use "/" instead of "\".

It's easy to correct on my side of course, so I'm happy, but it's still a (little) bug. FFS should handle / like it does \, since both are allowed on Windows.

Anyway, thank!
User avatar
Site Admin
Posts: 7282
Joined: 9 Dec 2007

Zenju

Ok, got it!

That's because of my Unix background, I often use "/" instead of "\".

It's easy to correct on my side of course, so I'm happy, but it's still a (little) bug. FFS should handle / like it does \, since both are allowed on Windows.

Anyway, thank!bob-125
Implemented for 7.4. In addition FFS will accept macros, path by volume name, etc, i.e. it supports all directory parsing features now also from command line! So something like

FreeFileSync.exe %csidl_desktop%/Syncjob

will run. Note the slash instead of backslash and the missing ".ffs_batch".

[404, Invalid URL: https://www.mediafire.com/folder/hekh49j9hahyy/Beta]