you could ping the server, use EXIST() to see if the directory exists, or a number of other similar actions to help determine what your script should do.
_________________________
Home page: http://www.kixhelp.com/hb/