Hello again experts:
I use the following code to unzip zipped files from one folder to another.
It works well except that I can only unzip one file at a time.
This is the code:
To work around this problem,I need to use the Scripting.FileSystemObject to loop through all the zip files in the folder.
Below is the FSO code:
But I need to integrate this fso code with the unzip code.
Can someone please, please help?
Thanks in advance
I use the following code to unzip zipped files from one folder to another.
It works well except that I can only unzip one file at a time.
This is the code:
Code:
<%
Dim objZip
Set objZip = Server.CreateObject("XStandard.Zip")
objZip.UnPack "C:\myZippedFiles\rssfeed.zip", "C:\myUnzippedFile\"
Set objZip = Nothing
%>
To work around this problem,I need to use the Scripting.FileSystemObject to loop through all the zip files in the folder.
Below is the FSO code:
Code:
<%
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
Set fldr = FSO.GetFolder( Server.MapPath("/relative/path") )
For Each fil In fldr.Files
If LCase( Right( fil.Name, 4 ) ) = ".zip" Then
zipFilePath = fil.Path
... unzip ...
End If
Next
%>
But I need to integrate this fso code with the unzip code.
Can someone please, please help?
Thanks in advance