Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create a folder
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00665062
Message ID:
00665361
Views:
22
You cannot do in from inside VFP. The folder has to exists before you start it.

>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
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform