VBA! Can't get process to end
I have this piece of code that unpacks a zipfile
shellandwait ("C:\Wzunzip C:\test.zip C:\")
After this process is done I want to delete it with
The problem is that I can not delete the zipfile because the Wzunzip process won't end. The Shellandwait funtion ensures the unpack line finishes first before resuming next code. I know this works becasue there are a few other command in between these 2 commands wich I could not do if the shellandwait function wouldn't work properly.
So here is the question:
How can I end the Wzunzip.exe process so I can delete that horrible zip file afterwords? Oh, I work with VBA.
Thank you for your time and effort.
Adapting codes found on web: how to stop process
Here a way to stop process.
Input process name as you see it via task manager....