Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Temporary files
Message
From
05/02/1999 10:41:01
 
 
To
05/02/1999 09:52:52
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Title:
Miscellaneous
Thread ID:
00183995
Message ID:
00184366
Views:
36
>>>>>With NT Workstations v4.0, Service Pack 1 that are configured
>>>>>to have read-only rights to the root of C, even though the config.fpw
>>>>>files are configured to write temporary files to C:\TEMP, an
>>>>>error
>>>>>"Cannot initialize environment"
>>>>>pops up when trying to start our application.
>>>>>When the rights for the root of C are changed to not just be read
>>>>>only, the application starts fine.
>>>>>We need to have these NT stations with read-only rights to the
>>>>>root of C.
>>>>>Any thoughts?
>>>>
>>>>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform