Hello, recently I have been working on an app in vba which relies on some files which are contained in the .docm file of the document its self. Initially, I was using the Windows XP compressed folder functionality to programmatically extract the contents of the docm. This was an optimal solution because it is built into all Windows XP that this will be used on and therefor required no installation. However, I have hit a snag: It seems that after I extract the docm a certain number of times, it starts erroring out saying "Error, that file already exists". Initially, I thought that I broke something and dug a bit deeper, it turns out that there wasn't a bug in my code, but rather a bug in Compressed Folder.
If you get the "File Already Exists" error on a certain zip file on your system, Compressed Folder no longer works on ANY file of the same name, if you rename said file, it starts working again. So here's my question: How can I implement zip capability in VBA without compressed folders? Bonus question: How can I fix compressed folders?
Thanks for your time.
-Seamus
Update: Currently I have it working using Compressed Folders, I am working around the bug by renaming the file to something new every time the error happens. This is working OK, but I am looking for more of a fix rather than a hack around the problem.