Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create a folder
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00665062
Message ID:
00665348
Vues:
23
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
Fil
Voir

Click here to load this message in the networking platform