Solved

ZIP FILE/DIRECTORY WITH PASSWORD

Posted on 2013-06-25
15
302 Views
Last Modified: 2013-07-04
Hi All,

I want to zip file/directory with password.

How could I do it ?

Thank you.
0
Comment
Question by:emi_sastra
  • 7
  • 5
  • 3
15 Comments
 
LVL 12

Accepted Solution

by:
mwochnick earned 300 total points
ID: 39276914
Utilize SharpZipLib
http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx


There's an example using SharpZipLib first in C# then in VB
https://github.com/icsharpcode/SharpZipLib/wiki/Zip-Samples
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 39276930
Hi mwochnick,

Is there any native from VS ?

Thank you.
0
 
LVL 12

Assisted Solution

by:mwochnick
mwochnick earned 300 total points
ID: 39276972
you could look at the ZipArchive class in .NET 4.5, but I'm not sure if it has a password capability.
http://msdn.microsoft.com/en-us/library/system.io.compression.ziparchive.aspx
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 1

Author Comment

by:emi_sastra
ID: 39277008
Ok.

If I use 3rd party zip, what should I copy to client computer ?

Could we use rar to do so, zip and password using VB Code ?

Thank you.
0
 
LVL 12

Expert Comment

by:mwochnick
ID: 39277923
you should be able to use any of the zip clients that support the zip format.
Winzip
7zip
etc
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39278178
With a 3rd party DLL, you can deploy this DLL as part of your application so it would work on client computers. With a program like RAR, this program will be required to be installed on client computers if you need to zip/unzip from your program so DLL is the way to go in my opinion.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 39278398
Hi CodeCruiser,

- if you need to zip/unzip from your program so DLL is the way to go in my opinion.
If I use rar, what dll do I need ?

Thank you.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39278481
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 39278508
Where is the dll file reside ?

Do I have to add it to references ?

Thank you.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39279496
Yes. It will reside in same folder as your program.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 39295367
I am sorry, just back.

-Yes. It will reside in same folder as your program.
I mean where is the dll of the 3rd party rar and what is the name ?

Thank you.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39297332
Any particular reason for using rar? Free zip libraries can easily be downloaded. I have not seen many for rar (there is a paid chilkot component).
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 39298753
-Any particular reason for using rar? Free zip libraries can easily be downloaded. I have not seen many for rar (there is a paid chilkot component).
No, I meant any zip libraries. I've never noticed the dll from zip librariy. Usually I just install and use it. Where is the dll reside and what is its name to be used inside VB ?

Thank you.
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 200 total points
ID: 39300096
It would reside in GAC if its not in your bin folder. It should also be in program files folder of that library.
0
 
LVL 1

Author Closing Comment

by:emi_sastra
ID: 39301047
Hi All,

Thank you very much for your help.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Creating a route in asp.net webforms 2 32
VB.net Open Folder in Windows Explorer 3 59
Code enhancement 4 22
Groupbox Control ? 2 20
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question