okay... now I understand...

Well it would be a two step process if you want the var available at the time of the script, and left over for other shells...

Code:

for /f "tokens=*" %%i in ('kix32 csd.kix') do set csd=%%i
echo %csd%
setenv -m csd "%csd%"



give it a shot... it works