Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FILES=XXX and FILES()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00858230
Message ID:
00858256
Vues:
16
Hi Sergey,

Thanks for this one.

Does that mean that CONFIG.NT would then be located directly
in C:\WINDOWS\CONFIG.NT ?

But if in some case the user is not allowed to change this file, my program will not be allowed to change anything too. Right?
I hope FOPEN can detect this situation correctly.

Thanks again.

>In WinXP by default the Windows directory is "Windows" not "WinNT". You can use SystemRoot enviroment variable to get Windows directory.
? GETENV("SystemRoot")
Keep in mind that users may not have the right to modify any files there.
>
>>Hi everyone,
>>
>>The problem occurs with Windows XP when we try to modify file CONFIG.NT to add FILES=150
>>
>>When CONFIG is located as C:\WinNT\SYSTEM32\CONFIG.NT as it should be, everything works just fine. SYS(2010) detects correctly the number of FILES available and correct the situation if needed as expected with FOPEN() and FPUTS().
>>
>>We do not use Windows XP ourselves, but some far away user experience problems with this automatic CONFIG.NT update.
>>
>>It seems that when CONFIG.NT is not located where expected, Windows XP takes over and some users not knowing what to do, just Quit the application and thats the end of it - they just tell us that nothing works, when they care to reply.
>>
>>The way I can see this, there is two possibilities.
>>Remember that this occurs when CONFIG.NT is not located where we expect it is.
>>
>>So, either the test IF FILE("C:\WinNT\SYSTEM32\CONFIG.NT") triggers Windows -or-
>>the test IF FILE("C:\WinNT\SYSTEM32\CONFIG.NT") gives a .T. by error
>>and the following FOPEN() WITH (2) READ/WRITE triggers Windows.
>>
>>Anyone knows which one does not function properly under Windows XP and what is the solution to this situation??
>>
>>Also, do we have to expect this with other Windows versions?
Réal Philippon
www.ultra.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform