Use DIRECTORY(). It works just like FILE(). It was introduced in (I think) VFP 5.
If you are using a version of FP/VFP which does not support DIRECTORY(), use FILE() and search for the NUL file. For instance,
FILE("C:\MYFOLDER\NUL")
should return .T. if C:\MyFolder exists and .F. otherwise.
zahid
>I know you can use the FILE() command to check to see if a file exists, but how can you check to see if a folder exists and create it if it does not? Nothing I have tried works.
>
>Thanks!
>Colombo.