Here is some code to give you a couple ideas on how to check a directory.
code:
if exist("h:\")
? "The directroy\file exists"
else
? "The directory\file does NOT exist"
endif

$attributes = GetFileAttr("h:\")
if $attributes = 0
? "An Error occurred: (" + @error + ") " + @serror
else
if $attributes & 16
? "The directory exists"
else
? "This is not a directory"
endif
endif

_________________________
Home page: http://www.kixhelp.com/hb/