Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3719
  • Last Modified:

Create RAR File using .Net

I want to Create RAR File using  .Net (no Rar.exe or WinRar.Exe)


thanks

Kalpesh
0
Kalpesh Chhatrala
Asked:
Kalpesh Chhatrala
  • 14
  • 7
  • 3
  • +2
2 Solutions
 
Meir RivkinFull stack Software EngineerCommented:
sharpcompress - here's open source from codeplex (.net 3.5/4):
http://sharpcompress.codeplex.com/releases/view/98965
0
 
Kalpesh ChhatralaSoftware ConsultantAuthor Commented:
SharpCompress only Extract RAR File. i want to create RAR File.
0
 
Rikin ShahMicrosoft Dynamics CRM ConsultantCommented:
Hi,

Rar is proprietary. Why do you stick to rar, there are other other formats, where you can make your own implementation without restriction.

If you still want to work on Rar then you will need to use winrar.exe

Rar is not free- http://en.wikipedia.org/wiki/RAR
You can go for 7-zip- http://www.7-zip.org/sdk.html
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Kalpesh ChhatralaSoftware ConsultantAuthor Commented:
i know RAR is Proprietary File Format. i am also using other format.

but i required RAR Solution without WinRar.exe
0
 
David Johnson, CD, MVPOwnerCommented:
Can't be done without access to the proprietary algorithms or an API
0
 
Kalpesh ChhatralaSoftware ConsultantAuthor Commented:
I want to Create RAR File in .Net (Not Zip File).

your solution is for .Zip File
0
 
Rikin ShahMicrosoft Dynamics CRM ConsultantCommented:
Hi,

You neither want to use Rar nor winrar!

The only option here is to contact winrar team- http://www.rarlab.com/wgmbh.htm
0
 
Kalpesh ChhatralaSoftware ConsultantAuthor Commented:
I knew this solution. i already tell in my Question. i don't want to use RAR and WinRAR

i required .Net Library.
0
 
Rikin ShahMicrosoft Dynamics CRM ConsultantCommented:
Hi,

There is none available. That's why I ask you to contact winrar team.
0
 
Kalpesh ChhatralaSoftware ConsultantAuthor Commented:
I've requested that this question be deleted for the following reason:

did not get any solution.
0
 
Rikin ShahMicrosoft Dynamics CRM ConsultantCommented:
There is no solution... Best suggestions were provided! Auther just want to use a paid tool service without using the it.
0
 
Kalpesh ChhatralaSoftware ConsultantAuthor Commented:
i asked .Net Solution Not WinRar / RAR. i already cleared in My Question.
0
 
Kalpesh ChhatralaSoftware ConsultantAuthor Commented:
I've requested that this question be deleted for the following reason:

Did not get Solution as per my question.

0
 
Rikin ShahMicrosoft Dynamics CRM ConsultantCommented:
And that is what I cleared in my answer... There is no solution available.
0
 
David Johnson, CD, MVPOwnerCommented:
There is BUT not with .net you have to contact the programs author since it is a proprietary algorithm and the author likes to get paid. Sometimes the correct answer is that there is NO answer and we will keep objecting until you understand this.
0
 
Kalpesh ChhatralaSoftware ConsultantAuthor Commented:
I asked clearly in MyQuestion.

i required .Net Solution then why are you wasting my time ?
0
 
Kalpesh ChhatralaSoftware ConsultantAuthor Commented:
I've requested that this question be deleted for the following reason:

Please Delete this Question.  i did not get solution as per my question.
0
 
David Johnson, CD, MVPOwnerCommented:
I am not wasting your time. Sometimes the answer is NOT what you want i.e. It Can't be Done is an acceptable answer.
0
 
Kalpesh ChhatralaSoftware ConsultantAuthor Commented:
    Private Sub RemovePassword(Filename As String, Password As String)
        Dim WinrarPath As String = "C:\Program Files\WinRAR\WinRAR.exe" 'Could put in configuration.
        Dim ExtractCmd As String = String.Format("X -p{0} *.* C:\temp\extract\", Password)

        Dim p = Process.Start(WinrarPath, ExtractCmd)
        p.WaitForExit()
        'Rename old rar file as .old
        IO.File.Move(Filename, Filename & ".old")

        Dim RecreateCmd As String = String.Format("A ""{0}"" C:\temp\extract\*.* -ep1", Filename)
        p = Process.Start(WinrarPath, RecreateCmd)
        p.WaitForExit()


    End Sub

Open in new window

0
 
Kalpesh ChhatralaSoftware ConsultantAuthor Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for kalpesh2804's comment #a39193639

for the following reason:

i forcefully accepted this code as answer.
0
 
Kalpesh ChhatralaSoftware ConsultantAuthor Commented:
Please Delete this Question.  because i did not get solution as per my question.
0
 
Rikin ShahMicrosoft Dynamics CRM ConsultantCommented:
What Kalpesh has answered was not exactly the question... He has clearly mentioned that winrar.exe or rar.exe should not be used.

Hence, the answer is not acceptable.
0
 
Kalpesh ChhatralaSoftware ConsultantAuthor Commented:
I've requested that this question be deleted for the following reason:

i want to delete the question.

0
 
Rikin ShahMicrosoft Dynamics CRM ConsultantCommented:
Kalpesh does not want to assign any answer as a solution.

I would ask the moderators do the right job and assign the points to right answer.

Rikin
0
 
Kalpesh ChhatralaSoftware ConsultantAuthor Commented:
I will not select any Answer. because i did not get answer.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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