Bill,
I don't know of a routine to detect the status of a directory.
ATTACH@ provides some ability, but you would need to understand the error return possibilities, such as:
not a valid directory name,
does not exist,
parent does not exist, or
is not a directory (could be a file).
Access rights (including read, write and create alternatives) will also effect this status.
What you could use is FILES@ and detect all entries in the parent directory that is expected to contain the directory you are looking for.
I've found FILES@ to be a reliable routine to use.
You could search all entries in the directory for the name you are looking for (allow for case) and determine it's status. It might not exist, or might not be a directory. Hopefully the parent directory is valid and accessible.
Also, with Windows 7 (in comparison to XP), different access rights have been applied to a number of directories where read but not write or create access is available. You need to be careful with interpreting the error condition when you try to create a directory or create a file in a directory. Opening a file for read only access can often be the only access available, or sometimes being able to write/append to a file but not being able to create a file. Even having sys-admin rights is sometimes not enough. I use to have .log or .ini files in c:\ or c:\windows, but this is very difficult with Win-7. Write a test program to just create a directiory and also test the ability to create files in the directory. You may be surprised by the restrictions that are applied.
Hope this helps,
John