How to run compact via command line or vbscript

All,

I am trying to zip a file from a sql2005 ssis package and within that package I can either runa  command line or vbscript to comapct / zip a file.

When I try to simply zip a file via command line and not through the sql package the command executes but sais o files were compressed. here is the command line i am using, any help is greatly appreciated.

Compact /c c:\sqltest\Testexcelfilecopy.dtsx test.zip

thanks in advance !
HumanScaleDevAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

LeeTutorretiredCommented:
Here is the syntax of the Compact command:

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true

I am pretty sure that the compact command does not compress files into a .zip file.  What it does is compress files or folders using NTFS compression.  Note from the syntax that there is no destination file specified, which I presume your test.zip is.  This would try to compress the directory c:\sqltest\Testexcelfilecopy.dtsx AND the file test.zip, if I read the syntax on the linked page above correctly.  The names of the folder and file would be unchanged.
0
LeeTutorretiredCommented:
Yes, the Compact command compression and WinZip-like compression offered in XP are different things.  See this page:

http://pubs.logicalexpressions.com/pub0009/LPMArticle.asp?ID=427
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LeeTutorretiredCommented:
I don't believe XP's built-in zip compression has a command line interface; at least I haven't been able to find one in some rather extensive google searches.
0
LeeTutorretiredCommented:
HumanScaleDev, isn't your question answered?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.