>>>I have a program compiled in VFP6 SP5 that tests if the system32 folder exists off of the windows home
>>>folder with code like:
>>>
>>>cWinFolder = "c:\winnt\system32"
>>>IF DIRECTORY(cWinFolder)
>>>ELSE
>>>ENDIF
>>>
>>>On some Windows 2000 SP4 PCs, the IF statement is returning false when the directory definitely exists.
>>
>>You've gotten answers elsewhere in this thread: I just wanted to point out that some people *hem hem* have
>been known to rename their windows directory when installing, so the WSH SpecialFolders collection is probably
>the best way to go here, if you can count on it being installed.
>
>Just so :-) But there is GETENV("SystemRoot"), or doesn't it work in some cases?
It doesn't work in cases where the suggester has no clue. :-) Beyond that, you're probably good. :-)