>>You could also use the "ren" command.
>>
>>! ren olddir newdir
>>* If anyone of these is a long file name having spaces then use quotes
>>! ren "\My long filename directory name" "My other LFN dir"
>>
>>cetin
>
>Cetin,
>
>I don't think that you can change the names of directories with long names using the DOS rename command. At least I haven't been able to do it. There's another thing about using the MoveFile call, you can tell whether or not the call succeeded by checking the return value. If it's not zero, then the change was successful, otherwise it failed. Using RUN, you have to check for the existence of the directory after executing the run. Fainally, you have to deal with the DOS window. A minor point to be sure, but there nevertheless.
Yes George, it's just an addition to yours. Just wanted to mention DOS ren is capable of changing LFN (of course if version 7.0 and up) via VFP run also.
Cetin