OK i tried the bat method

shell '%comspec% /C %WINDIR%\Login\Kix\tsping.bat'
$location=%TSLoc%

but it seems as if the variable TSLoc is not coming back set from the bat file.. the bat file gets the variable but will it stay set when it returns to the kix script?

_________________________
Austin Henderson