Simple WinZip Program

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
25 posts Page 3 of 3
User avatar
Napster1488
VIP - Donator
VIP - Donator
Posts: 524
Joined: Fri Jan 07, 2011 8:41 pm

Re: Simple WinZip Program
Napster1488
Hey Dude,
i just made a small DLL File that u can use in VB.NET to Extract RAR Files using UnRAR.
it contains two Functions in the moment "ExtractToCurrentDirectory and ExtractRAR"

How to Use:

Import to get Access to the Functions
Code: Select all
Imports UnRAR.UnRAR
Dim Variable to use it
Code: Select all
Dim rar as UnRAR.UnRAR = New UnRAR.UnRAR
First u need the Function SetPath to set the Path where the UnRAR.exe is stored
Code: Select all
rar.SetPath("C:/UnRAR.exe")
The two Extract Functions doesnt need Explantations.

Here is the Source Code from the UnRAR Lib
Code: Select all
Public Class UnRAR
    Dim Path As String

    Public Sub SetPath(ByVal UnRARpath As String)
            Path = UnRARpath
    End Sub

    Public Function ExtractToCurrentDirectory(ByVal File As String) As String
        Shell("cmd /k" & Path & " e " & File, AppWinStyle.Hide, True)
    End Function

    Public Function ExtractRAR(ByVal File As String, ByVal ExtractDir As String) As String
        Shell("cmd /k" & Path & " x " & File & " " & ExtractDir, AppWinStyle.Hide, True)
    End Function
End Class
Normally i wanted to use more Advanced Way with Process,the same Way how i do it with FFmpeg Command Line tool but it wasnt working with UnRAR,so i had to use this Way.

Greetz Napster
You do not have the required permissions to view the files attached to this post.
YouTube Downloader v3.0
Image
Image
Image
User avatar
gille
Member
Member
Posts: 33
Joined: Fri Nov 27, 2009 11:11 pm

Re: Simple WinZip Program
gille
I will test it later, thanks!
User avatar
Napster1488
VIP - Donator
VIP - Donator
Posts: 524
Joined: Fri Jan 07, 2011 8:41 pm

Re: Simple WinZip Program
Napster1488
gille wrote:
I will test it later, thanks!
No prob.
YouTube Downloader v3.0
Image
Image
Image
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: Simple WinZip Program
Axel
such a small piece of code doesn't require a library to be made. It takes away the portability of the program. And I found out why my version isn't working
http://vagex.com/?ref=25000
User avatar
jackdawkc
VIP - Donator
VIP - Donator
Posts: 3
Joined: Tue Oct 06, 2009 11:08 pm

Re: Simple WinZip Program
jackdawkc
I don't think it's cheating, it does what it say's on the tin :)
25 posts Page 3 of 3
Return to “Tutorials”