How to unzip file?

Function Unzip(FileName as String) Dim Proc As System.Diagnostics.Process
Dim strArguments As String =
“”
Dim strDestination As String = String
.Empty
strDestination = “Path where you want to unzip your file on your computer”  &  FileName
strArguments =
“-o “ & strDestination

Proc = System.Diagnostics.Process.Start(
“C:\WinZip\wzunzip”
, strArguments)
‘Note give the path of zip software installed in your computer.
‘Suppose if it is install at “C:\Program files\Winzip\wzunzip” then replace above this path.
Proc.WaitForExit()

End Function

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s