Pam -
You can try using the Windows SET command to set a Temp variable. Try in batch file that calls KiX script:

SET %LOGINFILE% = <ScriptName> ---> you put the name here
KIX32 %0\..\<ScriptName> ---> start Kix script
SET %LOGINFILE%= ---> clear variable after script completes
EXIT

With the Kix script you could then perform a substitution
%TmpVar = %LOGINFILE%

Untested, but let me know how it goes.

Bill