• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 310
  • Last Modified:

ZIP FILE/DIRECTORY WITH PASSWORD

Hi All,

I want to zip file/directory with password.

How could I do it ?

Thank you.
0
emi_sastra
Asked:
emi_sastra
  • 7
  • 5
  • 3
3 Solutions
 
mwochnickCommented:
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
 
emi_sastraAuthor Commented:
Hi mwochnick,

Is there any native from VS ?

Thank you.
0
 
mwochnickCommented:
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
emi_sastraAuthor Commented:
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
 
mwochnickCommented:
you should be able to use any of the zip clients that support the zip format.
Winzip
7zip
etc
0
 
CodeCruiserCommented:
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
 
emi_sastraAuthor Commented:
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
 
CodeCruiserCommented:
0
 
emi_sastraAuthor Commented:
Where is the dll file reside ?

Do I have to add it to references ?

Thank you.
0
 
CodeCruiserCommented:
Yes. It will reside in same folder as your program.
0
 
emi_sastraAuthor Commented:
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
 
CodeCruiserCommented:
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
 
emi_sastraAuthor Commented:
-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
 
CodeCruiserCommented:
It would reside in GAC if its not in your bin folder. It should also be in program files folder of that library.
0
 
emi_sastraAuthor Commented:
Hi All,

Thank you very much for your help.
0
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.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now