Information générale
Catégorie:
Codage, syntaxe et commandes
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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement