Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IF Directory('c:\winnt\system32') is incorrect
Message
De
03/09/2003 15:43:29
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00825793
Message ID:
00825803
Vues:
18
Jeff

>I have a program compiled in VFP6 SP5 that tests if the system32 folder exists off of the windows home folder with code like:
>
try it:
cWinFolder = "C:\WINNT\system32\AUTMGR32.EXE" && where AUTMGR32.EXE is a sample of system file that must be present in every NT system
IF file(cWinFolder)
ELSE
ENDIF
Certainlly, there is better solution using windows script.. But, this one is simpler than..

BTW, The folder winnt/system32 has the system attribute set to .T.

Directory() doesn't come .T. for this folder (here in my machine).. But, FILE() does.. I'm not shure if it will work for you..


HTH


Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform