My Assistant
![]() ![]() |
|
|
May 25 2007, 08:41 AM
Post
#1
|
|
|
UtterAccess Addict Posts: 218 From: Stowe, Vermont |
The following code unzips a zip file into a folder.
CODE ShellStr = PathWinZip & "Winzip32 -min -e" _ & " " & Chr(34) & FileNameZip & Chr(34) _ & " " & Chr(34) & FolderName & Chr(34) ShellAndWait ShellStr, vbHide Does anyone know the correct syntax on how to delete a specific file within a zip file? Thanks |
|
|
|
May 25 2007, 08:58 AM
Post
#2
|
|
|
Retired Moderator Posts: 8,589 From: Lansing, MI |
If you can't find anything else just unzip the file then kill it from the folder you unzipped it to.
|
|
|
|
May 25 2007, 11:07 AM
Post
#3
|
|
|
UtterAccess Addict Posts: 218 From: Stowe, Vermont |
For those of you who are interested in doing something like this I found this .dll that allows you to manipulate zip files with VBA. Just download the light version, install it and register the .dll. There are instructions on how to utilize it within your VB code. All you really have to do is Reference the ActiveX controls in the Reference menu. It is really cool! It allows you to delete files, add files, etc. to a zip file without having to open it.
Polar ZIP |
|
|
|
May 25 2007, 11:35 AM
Post
#4
|
|
|
Retired Moderator Posts: 8,589 From: Lansing, MI |
I just posted code to the archive here at ua that requires no reference and can build zips and unzip all files. It only requires WinXP. I have code working to unzip a single file that isn't in the mentioned post. Haven't tried deleting a file.
Ken |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 21st May 2013 - 01:14 PM |