You are right, sprintf() requires a char[], thank you...I usually use strf() which worked correctly.

Still, having a log file have the same name as .par file would be quite convenient. (with the LogNumber =second() with the BAT file still some files get the same name, requiring to add timeouts....so much dancing around such a trivial issue).