Maybe the directory name is invalid? What's the actual name of it?
>I tried your code and I'm still getting an "Invalid path or filename" error. I'm using VFP7 SP1
>
>Enmanuel
>
>>VFP supports long file/directory names. Most likely it doesn't work because you are using CD command incorrectly. Try
cDir = "c:\my new current folder"
>>CD (cDir)
BTW, what VFP version/SP are you using?
--sb--