Hi Barbara,
Thanks for the reply. I am exporting data with a COPY TO command. The path is stored in a table that can be edited by the end user. If the user enters an invalid path, I want to be able to pop up a Save As dialog so the correct path can be selected. Right now, I am using an IF..ENDIF to see if the path is valid. If it is not, I am using PUTFILE(). If you have a better suggestion, I am all ears!
Thanks,
TFISHER
>Be aware that using either the DIRECTORY() or ADIR() function in the way shown will only work if your path contains a single directory. Otherwise, you must parse the path to pull out the individual directories and test each of those.
>
>But I question your original statement that you want to check the path to make sure you don't get an error. I've never received an error by having an invalid directory in the path. You'll only get that error if you use that path to create or copy a file to a bad directory contained in the path. Is that what you're doing?
Thanks,
TFISHER