Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Temporary files
Message
De
05/02/1999 18:09:23
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
05/02/1999 10:41:01
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Titre:
Divers
Thread ID:
00183995
Message ID:
00184578
Vues:
31
>>>>>RESOURCE=OFF in CONFIG.FPW, or pointed elsewhere where they do have rights, or put a FOXUSER.DBF and FPT there, flagged as read-only.
>>>>
>>>>This will not solve the problem. The temp files could be pointed to a network drive, but it will slow down the application.
>>>
>>>I've assumed that rights to C:\TEMP were explicitly granted, and not inherited downwards; if this isn't the case, then explicit granting of rights in the C:\TEMP directory is necessary, if that's where the problem lies. Unfortunately, what we are missing is the startup directory; if it's the root of C:, FOXUSER is the probable error.
>>
>>A couple of other thoughts this morning (I'm not so sleepy now). Try the WinNT temp directory (which is not C:\TEMP) or the user's profile directory.
>
>Agreed that using the NT temp file directory would be a solution, but it doesn't work unless you can resolve the path dynamically, or all stations have NT and Win9x installed to use the same absolute directory (CONFIG.FPW doesn't have a dynamic path resolution option AFAIK), and the profile directory is an even tougher nut to crack, since Win9x boxes may not have profiles enabled.
>
>Individual CONFIG files that point to a temp directory on a user-by-user basis based on the environment variable would be best in almost all cases, but it's more work when installing the app on each station, and when adding new users to the station.

You can have your app generate a config for each station and use it next time. You can use any environment and other things while building it. The only problem is how to have your icons include the -cx:\wherever\mylocalconfig.fpw in the command line, which is beyond my powers.

You may end up running your app from a batch file, and simply re-generate that batch file as well, so it contains the -c option pointing to the private config.fpw. Make sure your first batch file has some blanks to the end of the .exe calling line, because Windows/Dos will resume reading it (at exact byte position where the .exe calling line ended) when the app exits, and may actually find some extraneous characters when it gets a longer line now.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform