Bill: One word of caution using the technique below. CHKFILE
does not distinguish between checking for a file and checking
for a directory. I always used this code to check for the existence
of a C:\TEMP directory (my usual Scratch directory) and create it
if it doesn't exist. One user would always have program crashes,
and it turns out that he had no C:\TEMP directory, but he had a
file on his computer called C:\TEMP with no extension! So it
never created the directory! What are the odds?
I thought at first I could do "ERASE C:\TEMP" first, thinking it would
not remove the directory and I specified no files to erase, but it turns
out that that erases all the files in that directory, so that's not good
either... So I take my chances that it'll never happen again.
Karen
> Bill,
>
> Use the CHKFILE function of R:BASE to achieve your goal.
>
> Here's how:
>
> SET VAR vChkFile = (CHKFILE('G:\AC'))
> IF vChkFile <>1 THEN
> MD G:\AC
> ENDIF
>
> That's all there is to it!
>
> Very Best R:egards,
>
> Razzak.
>