Oops... Should have known that.
Altered the script above a bit. Just a quick and dirty way to find if you are on a terminal server or not.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.