How to zip a file in vb.net 2010




















Feedback will be sent to Microsoft: By pressing the submit button, your feedback will be used to improve Microsoft products and services. Privacy policy. Thank you. Microsoft makes no warranties, express or implied, with respect to the information provided here. To use the ZipFile class in a. NET Framework app, you must add a reference to the System. FileSystem assembly in your project.

This example shows how to create and extract a zip archive by using the ZipFile class. I also enjoy learning new approaches and development tools when it comes to developing applications. More posts by the David Bauernschmidt. Personal Website. One Comment on Zip a File Using vb. July 27, at am. Thanks for this and other articles on VB. Very helpful. Keep them coming, please!

Leave a Reply Cancel reply Your email address will not be published. Search for: Search for:. All trademarks are property of their legal owner. Try SharpZipLib, it works bcos i have used it in the past.

I only have to take backup of single file only,but this one is for multiple. Though i tried converting it for single file but then i got stuck at the filepath In my case, user will select the path where he wants to take backup then the written utility would perform the backup operation and then i have to zip that back file with password protection and delete that backup file so as to keep only the zip file.

I even tried the code in first link and its working too but it doesn't have any password protection. First, it would make the zip file in previous directory i. Second, it would change the name of zip file with current directory name and file name i.

Improve this answer. Mike Ohlsen Mike Ohlsen 1, 13 13 silver badges 21 21 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta.



0コメント

  • 1000 / 1000