>Is there a way to macro substitute for the directory name to be used with DIRECTORY()? For example, I want to check to see if the directory "D:\photoeye\books" exits.
>
>lcName="D:\photoeye\books"
>
>IF DIRECTORY(&lcName)
> MKDIR "books"
>ENDIF
>
>This doesn't work. What am I missing?
DIRECOTRY() takes a character expression rather than an name - don't macro-expand the variable. IOW,
DIRECTORY(lcName) would be correct, unless lcName contained the name of a variable that contained the string to check.