Randy,
If MyDir variable is not character type, the function will crash.
Also note that Directory() returns .F. for directories with Hidden or System attributes.
Cheers,
Zoran
>Hi. VFP7 user on an NT4 network.
>
>The following line of code shuts down my runtime exe when it is executed:
>
>
IF NOT DIRECTORY('f:\'+(mydir))
>
>It should return a logical. Looks pretty simple. Any ideas?