|
|
|
Say Hey Kid
      
Group: General Forum Members
Last Login: Friday, April 26, 2013 11:57 AM
Points: 708,
Visits: 660
|
|
I saw that too.
If Len(strDay) = 1 Then strMonth = "0" + strDay End If
probably should be
If Len(strDay) = 1 Then strDay = "0" + strDay End If
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, October 26, 2012 4:51 PM
Points: 7,
Visits: 73
|
|
(grin) Maybe I should have been less obtuse... What I was REALLY hoping for was "someone" to share how they'd done it WITH the Windows functions.
"OH GREAT SOMEONE, OUT THERE IN THE INTERWEB... Hear my request..."
Does the Interweb respond to sacrificial offerings?
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Thursday, February 14, 2013 12:01 PM
Points: 743,
Visits: 900
|
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Monday, May 20, 2013 5:43 PM
Points: 19,
Visits: 80
|
|
What I was REALLY hoping for was "someone" to share how they'd done it WITH the Windows functions.
Well maybe this example is not with windows functions as they are API calls. But I can give an example using a .NET DLL Assembly!
1) Download SharpZipLib and install into the GAC (yes, has to be in the GAC. This is a MS decision!) 2) Add a script task 3) Edit the script 4) Add a reference to the DLL by right clicking on references and adding the reference 5) Initialise the object and use the assembly functions for Zip creation :)
We use package variables for the output dir and the name of the zip file (we add date info to this filename).
If you want, I possibly could write up a step-by-step article on how to achieve this in managed code.
Hope this makes sense :)
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 12:52 PM
Points: 1,304,
Visits: 7,121
|
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Today @ 2:40 AM
Points: 132,
Visits: 162
|
|
This is really a great article with great simplicity. Thanks for sharing.
Please keep it up
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, February 28, 2011 3:01 AM
Points: 8,
Visits: 164
|
|
Hi,
Nice article.
I rather instead of using an Execute Process Task , that uses an external file, it's better (for me) to use the 7z instruction on the Script Task and put the 7z.exe in the Windows Assembly folder.
Regards.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, April 03, 2013 3:05 AM
Points: 1,
Visits: 51
|
|
Hi,
I agree whit this article, but when I develope this kind of package (Mail Task, FTP Task, Execute Process task), I prefere use the expressions andthe variables, evaluated as Expressions. I try to use the Script Task only for some task that SSIS can not do natively.
Sorry for my english :)
Rmi
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 2:18 PM
Points: 2,278,
Visits: 2,999
|
|
Bk (9/22/2008) Thanks for the great article, Carolyn!
Shouldn't it also be possible to use native Windows functions to compress and uncompress groups of files into .zip-compatible archives? NOT "compress" like the command line .exe or operating system file attribute, but similar to how I can view/create compressed .zip-compatible files from Windows Explorer.
Any thoughts? Bk No, you cannot do this via Windows Compressed folders. You cannot do this because Windows Compressed folders does not have an interface or allow the use of command line switches . You could probably do some hacks to get it working, but it is outside the Windows built-in functionality. You will have to go with a non-Windows tool or API to accomplish this task.
My blog: http://jahaines.blogspot.com
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, October 26, 2012 4:51 PM
Points: 7,
Visits: 73
|
|
| NO Windows API to manipulate compressed folders? Ok then....
|
|
|
|