>does anyone know how to check to see if a directory already exisits in FoxPro Dos.
>thanks
>james
To add to what Cetin said, do not add the backslash after the directory name.
IF ADIR( laDir, "C:\TEMP", "D" ) = 1
WAIT WINDOW 'Directory exists'
ELSE
WAIT WINDOW 'Directory does not exist'
ENDIF