Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FILES=XXX and FILES()
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00858230
Message ID:
00858236
Views:
12
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?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform