Is there a reason you dont want to simply read the registry value straigh to a variable inside of kix, instead of trying to use a batch script and passing it in?