Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IF Directory('c:\winnt\system32') is incorrect
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00825793
Message ID:
00825814
Views:
16
>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.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform