VBA! Can't get process to end
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Thread: VBA! Can't get process to end

Threaded View

  1. #1
    Join Date
    Nov 2002
    Location
    Netherlands
    Posts
    132

    VBA! Can't get process to end

    Hi everyone,

    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
    Kill "C:\test.zip"

    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.

    Best regards,

    Jasper
    Last edited by Jasper XAFAX; April 22nd, 2004 at 04:32 AM.
    Flying is to throw yourself on the ground and miss

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center