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

What could be confusing the DIRECTORY() function?

Are there windows security levels that keep users from messing with their PCs that would essentially hide the folder from the DIRECTORY() function?

Is there a good alternative to the DIRECTORY() function?

Thanks,
Jeff
Next
Reply
Map
View

Click here to load this message in the networking platform