Should this line...
 Code:
set KIXLOG=%ADLOGFN%_kix%ADLOGEXT%
be...
 Code:
set KIXLOG=%AdLogFilename%_kix%ADLOGEXT%
?