Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Specifying tmpfile location in vfp
Message
From
22/01/2000 13:13:54
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00321131
Message ID:
00321309
Views:
17
>>I want to specify the location of the temp files, using a configuration file for vfp.But vfp seems to be picky about the syntax, and microsoft help seems not to contain any examples of doing this (grumble, grumble).
>>
>>The Microsoft help says the syntax is
>>TMPFILES drive
>>
>>is it
>>
>>TMPFILES c:\temp
>>TMPFILES c:\temp\
>>TMPFILES 'c:\temp'
>>TMPFILES = c:\temp
>>TMPFILES = 'c:\temp'
>>set TMPFILES c:\temp
>
>TMPFILES=C:\TEMP
>
>This must be set in your CONFIG file.
>
>Caveat: old Fox products (not sure exactly when the transition occurred) would only accept the drive from the TMPFILES statement, and it used whatever the current directory at startup for the drive as its work area. To specify directories, you had to use the other configuration directives (SORTWORK, PROGWORK, EDITWORK) to set the drive and directory.

To handle the older Fox products (DOS ?) that didn't support the path, I used to use drive substitution mapping to the folder I wanted the tempfiles to be in:

AutoExec.Bat
SUBST U: C:\SCRATCH

Config.FP
TMPFILES=U:\
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform