>Hi,
>
>I'm looking for an easy way to determine if a directory exits using VFP6. It's very easy to determine if a file exists, but I can't figure out how to determine if a directory exists. Thank you!
>
>Tim
A quick and ugly way is to use:
ON ERROR do nodirectory()
CD C:\MYDIRECTORY
FUNCTION nodirectory
messagebox("This directory does not exist.")
ENDFUNC
And if the directory doesn't exist, you trap the error.