![]() |
Click here to advertise with us
|
|
|||||||
| Non-GUI Discussion of non-GUI components such as compression, encryption, registration, activation, etc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
That's just it. How do I place a file in a zip folder programmatically?
__________________
Triple G^3 - Get Stuck on It!The Angels will sing for me tonight. The Holy Spirit will comfort me. And as hard as the wind blows; I'll be ahead of it! |
|
||||
|
A zip is really a file, not a folder, but with Windows XP it is built into the Explorer to handle these files as folders. To use this feature programmatically add first reference to COM library 'Microsoft Shell Controls And Automation'. Then use the ShellClass and CopyHere method. There are some code examples here:
- compress (existing and new zip): http://www.xtremevbtalk.com/showthread.php?t=263973 - decompress: http://www.codeproject.com/csharp/de...shellapics.asp Else there exist a number of libraries (free or pay) to handle compressed archives like zips.
__________________
Some useful links: Learning videoes, Code Samples, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ
How to format posts with code blocks etc - present the problem/post properly ![]() |
|
||||
|
Speaking of which, the not unknown free library SharpZipLib updated to version 0.85 just the other day and now supports adding files to existing ZipFile.
__________________
Some useful links: Learning videoes, Code Samples, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ
How to format posts with code blocks etc - present the problem/post properly ![]() |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|