Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Specifying tmpfile location in vfp
Message
From
24/01/2000 13:17:29
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00321131
Message ID:
00321729
Views:
19
>>>>>>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
>
>>>>Config.FP
>>>>TMPFILES=U:\
>>>
>>>Not recommended - SUBST in some platforms causes all sorts of strange and wonderful things to happen, AUTOEXEC.BAT can get bypassed (start Win9x in Safe Mode, or hold down both shift keys during the boot process) and can be changed on you in lots of different ways. Since the PROGWORK and SORTWORK entries are the biggest users of swap space, it'd be better just to specify them in CONFIG.FP/CONFIG.FPW where you aren't sure whether or not TMPFILES pays attention to paths. I'd rather add a line or two to the CONFIG than rely on SUBST myself
>>
>>May be true that it's not the safest method in the world, but it was the only solution that worked for us. Having your root directory fill up to its maximum number of files caused far worse problems than not finding the TMPFILES directory at all. It's all a moot point now, anyways, since a path is now supported in current versions of VFP. Worked great for us in DOS, though.
>
>So just use the PROGWORK and SORTWORK config lines, since they have always supported paths.

Never thought of that. Thanks! (if it ever comes up again)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform