Hi Andy,

You can exit a script and set the exit code like shown below.

 Code:
if exist("c:\something.txt")
  ?"Found something.txt"
  Exit 0
else
  ?"Did not find something.txt"
  Exit 2
endif
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.