We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Zipping

elise_r
elise_r asked
on
Medium Priority
273 Views
Last Modified: 2010-04-05
Hi.
I have to include an ability to compress files in my project, can anyone supply me with routine that does the job? I need it quickly.
Comment
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
you should look to 'FWS' in the header of the previous given URL. This means that it is FreeWare and SourceCode is included.

Commented:
A routine… heh…
Uses ShellApi;

ShellExecute(application.Handle,
                     pchar('open'),
                     pchar('rar.exe'),
                     pchar('a '+MyArcName+' '+files2add),
                     pchar(extractfiledir(application.ExeName)),
                     SW_HIDE);

Author

Commented:
Thanks, but need no extra files, neither *.exe nor *.dll; all the stuff must be inside my app.
In this case you have to use third-party components. I use ZipForge from componentace.com  
Or there is another way: you can invent your own algorithm and write your routine yourself :)
Why reinventing the wheel if there were already smart people who did it for us ?
Now I'm referring to my given URL on the Torry-website.
Most of those Components are freeware AND with source-code. What more do you need ?

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
What is ECL and flex compress?
ECL is easy compression library – handy unit to handle archiving :)
FlexCompress is a visual component that does similar work.
and are they freeware too?
I don't knwo if that is an issue here ...

Commented:
u need to change it once you have it the app or is it  static info inside your app that you want to extract and run (like a installer) ?
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
I can live with that recommendation.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.