wonder_gal
Active member
- Joined
- Jun 5, 2006
- Messages
- 34
- Programming Experience
- 1-3
Hi,
I am writing a function to unzip a zipped file, using OpenFileDialog method. Below is my coding, may I know how can I automate my unzip function, means pre-select the zipped file(without having to pop up the directory prompt to let user select the location of the zip file)? Is there any way to accomplish this task?
I am writing a function to unzip a zipped file, using OpenFileDialog method. Below is my coding, may I know how can I automate my unzip function, means pre-select the zipped file(without having to pop up the directory prompt to let user select the location of the zip file)? Is there any way to accomplish this task?
VB.NET:
With OpenZIPFileDialog
.InitialDirectory = strFullDirectoryPath
.Filter = "Zip Files (*.zip)|*.zip*"
.FilterIndex = 1
If .ShowDialog() = DialogResult.OK Then
Dim x As New ICSharpCode.SharpZipLib.Zip.FastZip
x.ExtractZip(.FileName, strFullDirectoryPath, "csv;xsl")
End If
End With