D
Thu May 17 17:39:51 CDT 2007
Hi Ayush,
Is the zipping up process as easy as this too? Do you have another quick
example?
Thanks,
Dave.
"Ayush" <"ayushmaan.j[aatt]gmail.com"> wrote in message
news:%23WQKyR%23lHHA.3704@TK2MSFTNGP02.phx.gbl...
> [Stacy Finn]s message :
>> I receive information via compressed files that I place in appropriate
>> folders to be unzipped and processed later. My VB program does much of
>> the processing for me once the files are manually unzipped one by one,
>> but I could use a bit of VB code that would unzip and then delete these
>> original compressed files. Can't seem to find anything on this subject.
>> S.F.
>
> pathToZipFile="C:\index.zip"
> extractTo="C:\"
>
>
> set sa = CreateObject("Shell.Application")
> set filesInzip=sa.NameSpace(pathToZipFile).items
> sa.NameSpace(extractTo).CopyHere(filesInzip)
>
>
> To delete the Zip file, use FSO Delete method
>
>
> Good Luck, Ayush.
> --
> Script Center :
http://microsoft.com/technet/scriptcenter/default.mspx