General information
Category:
Coding, syntax & commands
I am trying to force FoxPro to use a speicifc folder for its temp files.
I was thinking about doing it this way.
- Call a program from the config.fpw file as
command=Do findtmpfolder
FindTmpFolder.Prg
*delete mytemp folder, if it already exists
if directory("c:\mytemp")
rd "c:\mytemp")
endif
* create mytemp folder again
md "c:\mytemp"
* if mytemp folder was created successfully, return "c:\mytemp"
* so that we can issue a command like : tmpfiles="c:\mytemp"
if directory("c:\mytemp")
return "c:\mytemp"
else
return ""
endif
- But I am not sure how a return value can be passed to the config.fpw
and if I issue the command tmpfiles="c:\mytemp" in the FindTmpFolder.Prg
it does not take effect.
Any help would be appreciated.
Ria
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only