That may be it, he may be using that variable somewhere to set his temp directory to it. That may cause a problem with getting rid of the directory. Of course I guess I could fire up VFP and check huh?
>Cy,
>
>I tried this out, but when I try to remove a directory that still contains files, I get the error "The directory is not empty" using VFP6 on W2K. However, when I try to remove a directory that is the current default directory, I get "File access is denied". Suppose we'll have to wait for Sn to let us know <g>.
>
>Scott
>
>
>>That was my reason for suggesting that it may be being used that way. However, thinking further, it may be that the directory is not empty. IOW if you create files in there, you can't just remove the directory, you have to delete all the files in it first. I'll bet that's the problem.
Cy Welch
Senior Programmer/Analyst
MetSYS Inc