>>>how to know if a directory exist ?
>>>and how to creat it if not exist ?
>>
>>
lcDir="w:\somepath\more path\SomeDir"
>>if not directory(lcDir)
>> md (lcDir)
>>endif
>>
>
>Works with FILE() to dunnit, I seem to recall?
I just tried it, file() returns .F., even if the directory exists. Also, in the cases where it does work (i.e. for files), file() has the nasty habit of finding files in places other than the specified place - which is not always the desired behavior.
You can use adir(), with the appropriate parameters to include directories.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)