>If 0=adir(aTdyDir,Left(tdy_bakpth,len(tdy_bakpth)-1),"D")
>``MkDir tdy_bakpth
>endif
>
>How do i replace this logically valid statement with one that works?
>
>I've tried enough permutations of this structure, and i know there is a simple script object replacement that works more reliably. Can you post the code to fix this immediately, and a reference to learn more about the script objects in general? (i'd rather any alternative than using Foxpro for the nitty-gritty specifics like this)
if !directory("SomeDir")
mkdir ("SomeDir")
endif
Cetin