A
Anonymous
Every day we get a zip file(s). For example:
20090811a.zip
20090811b.zip
20090812.zip
I need to create the appropriate folders and extract the zip file(s) into
the correct folders. For example:
A folder called 20090811a will be created and the contents of 20090811a.zip
will be extracted into that folder.
A folder called 20090811b will be created and the contents of 20090811b.zip
will be extracted into that folder and so on.
I have the following code to extract a zip but it doesn't create the folder
and I need the zip file path to locate all zip files. I tried using a
wildcard in the file name and it won't run if I do that.
pathToZipFile="c:\document\test\20090811.zip"
extractTo="c:\document\test\"
set sa=CreateObject("Shell.Application")
set filesInzip=sa.NameSpace(pathToZipFile).items
sa.NameSpace(extractTo).CopyHere(filesInzip)
Thanks!
20090811a.zip
20090811b.zip
20090812.zip
I need to create the appropriate folders and extract the zip file(s) into
the correct folders. For example:
A folder called 20090811a will be created and the contents of 20090811a.zip
will be extracted into that folder.
A folder called 20090811b will be created and the contents of 20090811b.zip
will be extracted into that folder and so on.
I have the following code to extract a zip but it doesn't create the folder
and I need the zip file path to locate all zip files. I tried using a
wildcard in the file name and it won't run if I do that.
pathToZipFile="c:\document\test\20090811.zip"
extractTo="c:\document\test\"
set sa=CreateObject("Shell.Application")
set filesInzip=sa.NameSpace(pathToZipFile).items
sa.NameSpace(extractTo).CopyHere(filesInzip)
Thanks!