Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IF Directory('c:\winnt\system32') is incorrect
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00825793
Message ID:
00825849
Vues:
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.

Just so :-) But there is GETENV("SystemRoot"), or doesn't it work in some cases?
Regards,

Mike

"We try to solve the problem by rushing through the design process so that enough time is left at the end to uncover the errors that were made because we rushed through the design process."
- Glenford Myers

If you're going through hell, keep going. - Walt Disney
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform