It depends on why you need to do it, but the easiest way is to pass the value on the command line.

For example, in your batch file:
 Code:
REM *********************************
REM * THIS IS THE XYZLOGON.BAT FILE *
REM *********************************
 
\\server\path\kix32.exe \\server\path\logon.kix $sBatchFile="XYZLOGON.BAT"


Then you can pick up and display the value in KiXtart:
 Code:
"This script was called by batch file '"+$sBatchFile+'"'+@CRLF


[edit]Allen was faster, and the %0 is simpler. Tch, must be getting old.[/edit]