Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IF Directory('c:\winnt\system32') is incorrect
Message
From
03/09/2003 15:43:29
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00825793
Message ID:
00825803
Views:
19
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
Previous
Reply
Map
View

Click here to load this message in the networking platform