Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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....
Labels (2)
7 Replies
Anonymous
Not applicable
Author

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.
alevy
Specialist
Specialist

Just use tFileArchive - it has all the settings you should need.
Anonymous
Not applicable
Author

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
alevy
Specialist
Specialist

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.
Anonymous
Not applicable
Author

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
alevy
Specialist
Specialist

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

Thanks alevy, I will try