can I gather all the files belong to a project in one folder. I mean I want all the .prg .dbf .frx etc etc to be in one folder directory, so i can zip these files.
Thanks in advance.
You can scan the project's files collection
For Each oFile In _vfp.ActiveProject.Files
? oFile.Name, oFile.Type
&& copy file ...
&& copy corresponding memo file if any
&& like VCT for VCX, SCT, MNT etc...
Next
hth
-Stefan
can I gather all the files belong to a project in one folder. I mean I want
all the .prg .dbf .frx etc etc to be in one folder directory, so i can zip
these files.
Thanks in advance.
> can I gather all the files belong to a project in one folder. I mean
> I want all the .prg .dbf .frx etc etc to be in one folder directory,
> so i can zip these files.
Hi Samir,
When I have a relatively small project I keep everything in one folder -
that is, I don't have Progs, Reports, etc. folders. However, Stefan's idea
will work well if you need to store them separately.
Using WinXP's native zipping function I can zip a folder that has
sub-folders and preserve the subfolders. I do this manually though - not
with a program.

Signature
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
cindy.winegarden@mvps.org www.cindywinegarden.com
Samir R. Ibrahim - 28 Feb 2004 20:19 GMT
First Thank you Stefan for your code.
I did already have all my functions and report in one folder(300 .prg as
function and 250 report 'system requirement')., but sometimes i make a small
project that i use about 3 already existing prj, and 1 report, in addition
to new prg and report that belong to this project only, so if i need to copy
this project to another location via modem, i need to gather all that
project files coz it will take a lttile time to seach amoung all these
files.
Samir R. Ibrahim
> > can I gather all the files belong to a project in one folder. I mean
> > I want all the .prg .dbf .frx etc etc to be in one folder directory,
[quoted text clipped - 13 lines]
> Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
> cindy.winegarden@mvps.org www.cindywinegarden.com