I am writing a function to unzip a zipped file. But I'm getting this error, "Cast from string "C:\temp\FileName.zip" to type 'Integer' is not valid." Below is my coding, I got this error in the bold line. May I know what does the casting error mean here? Why do I need to cast the string of my zip file path to integer?
ExtractZIPfiles(Directory.GetFiles(strFullDirectoryPath, "*.Zip")) Private Sub ExtractZIPfiles(ByVal pathList() As String) Dim x As New ICSharpCode.SharpZipLib.Zip.FastZip Dim strFullDirectoryPath As String = Path.GetFullPath("C:\temp") For Each s As String In pathList [B] x.ExtractZip(pathList(s), strFullDirectoryPath, "csv;xsl")[/B] Next End Sub