#1 2012-05-29 16:58:02

pnbalaji
Member
Registered: 2012-02-14
Posts: 52

tFileArchive help

Tags: [development]

Hi,

Is it possible to archive files from multiple directories into one zip file using the tFileArchive component?

Thanks,
Balaji.

Offline

#2 2012-05-29 19:11:28

tpk
Member
Registered: 2012-01-20
Posts: 178

Re: tFileArchive help

Hi Balaji,

Yes it is possible to archive files in multiple directories. But i need few clarifications, whether u want to archive the files present in multiple directories in their respective directories or copy all files from multiple directories to one place and then zip all the files in one location. Either of the ways are possible.

Which way you want?

Waiting for your reply.

Thanks and Regards,
Pavan

Offline

#3 2012-05-29 20:48:29

pnbalaji
Member
Registered: 2012-02-14
Posts: 52

Re: tFileArchive help

I want to select multiple files from multiple folders and archive them into one zip file in a folder.

Thanks,
Balaji.

Offline

#4 2012-05-30 10:24:06

tpk
Member
Registered: 2012-01-20
Posts: 178

Re: tFileArchive help

Hi Balaji,

You can do the below mentioned way

tLoop ----Iterate----> tJava ----Iterate---> tFileList -----Iterate----> tFileCopy -----OnComponent Ok---> tFileArchive


Kindly ask if you need more clarification on the above.

The Process is in tJava you will define one temp variable and assign the global value coming from tLoop to that temp value, you need to define one context variable in tFileList for passing the directory value each time a loop is performed. in tJava u will assign the directory to that context value. Next in tFileList u will define the filemask values which type of files you want to copy. In tFileCopy u assign the global value coming from the tFileList and specify the destination directory in which you want to copy and finally in tFileArchive u will specify the directory to where the files are copied and give your zip/archive file name.

Thanks and Regards,
Pavan

Offline

#5 2012-05-30 21:47:42

pnbalaji
Member
Registered: 2012-02-14
Posts: 52

Re: tFileArchive help

Is there a sample job that I can take a look? This is little confusing for me.

Sorry.

Thanks,
Balaji.

Offline

#6 2012-06-06 21:43:04

pnbalaji
Member
Registered: 2012-02-14
Posts: 52

Re: tFileArchive help

Thanks tpk.

I was able to do this a little differently, but the credit for the idea is yours. My job is below.



Thanks,
Balaji.


Uploaded Images

Offline

Board footer

Powered by FluxBB