Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How to zip multiple backup files into different archive files

$
0
0

Hi All,

i am using visual studio 2008 .My scenario is multiple backup files  zip into individual archives.its like(1.bak,2.bak,3.bak into 1.zip,2.zip,3.zip) . i am using winrar.

i have done with execute process task .I used for each loop enumerator in that

collection-File enumerator

sourcepath is - C:\Database backup and File is *.bak  Fully qualified

In variable mapping -FileName

After that i took execute process task in for each loop.In that Executables - C:\Program Files\WinRAR\WinRAR.exe

For Arguments I used expression in that -----  "a "+ @user::filename + ".zip"

My source and destination folder is same

its giving result like different zip files.But the problem is For 1.bak  its zipping correctly 1.zip.  For 2.bak it is zipping 1.zip file and 2.bak file and For 3.bak it is zipping 1.zip,2.zip and 3.bak files .

 Now i want to use seperate source path and destination path.

Can Any one help Detailed Way.

Thanks in advance



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>