provided you're using at least KiX 4, you can go with the @ProductSuite macro to ascertain. Of course the environment vars used in your bat would work as well.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.