One Star

Archiving the files

How to archive the file from different directories, e-g i am having the flat files at different folders
country/test1.xls
physician/test1.xls
clinics/test1.xls
i want move all the files into one directory once the job has been executed
Target path: archive/runid_file_used/27_aug_2013.zip

this zip file should have all the 3 source files
Appreciate any solution for this....
7 REPLIES
Five Stars

Re: Archiving the files

There's whole bunch of file management components including one to zip an archive. Just take a look at the palette to see what's there.
You can use various variables and date methods to construct your file names.
Seven Stars

Re: Archiving the files

Just use tFileArchive - it has all the settings you should need.
One Star

Re: Archiving the files

Thanks for your reply alevy. Its working fine, but it's creating the archive with sub folders.
i wanna archive the files not a directory .share me there is any idea
Seven Stars

Re: Archiving the files

How would you handle naming conflicts i.e. files of the same name in different folders?
Assuming there are none, you would have to move all the files into one folder first (tFileList --> tFileCopy) and then archive them.
One Star

Re: Archiving the files

Thanks for your interest, My files are would be like
Meta data>folder_physician>physicina.xls
Meta data>folder_geography>geography.xls
Meta data>locations>country>country.xls
Meta data>locations>state>state.xls
my output archive should be like
MetaData_Archive.zip
It should contain following files

physicina.xls
geography.xls
states.xls
country.xls
Appreciate, Any Idea
Seven Stars

Re: Archiving the files

As I said, move all the files into one folder first (using tFileList -iterate-> tFileCopy) and then tArchive them.
One Star

Re: Archiving the files

Thanks alevy, I will try