Macer,
The sample code works without problems on my machine. It gives no error messages, and creates the directories in the Windows temp folder.
However, I should point out that VFP6 is not the only difference; I also use
Windows 98 rather than Win 2000.
Additional suggestions:
Use XCOPY (or a Windows API function) to copy an existing, empty, directory tree.
Ask other users about their experience with Win 2000 + VFP6 or VFP7.
HTH, Hilmar.
>>
>>In Visual FoxPro 6, I could create two directories at a time (e.g.: MD ABC\DEF), without an error.
>>
>>What is it you need to do? Create a whole tree of empty directories?
>>
>Yes, I need to do exactly that.
>
>I agree that it is possible to create two directories at once under normal circumstances. However, it is not possible to create a tree of multiple directories in the windows (W2K) temp folder. Maybe you could try running the code in my original post?
>
>I would be interested to hear if VFP 6 does not have the same problem.
>
>Thanks
>
>Mace
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)