How to check when Shell32.Folder.CopyHere() is finished

Posted by Jelle Capenberghs on Stack Overflow See other posts from Stack Overflow or by Jelle Capenberghs
Published on 2012-04-06T11:26:13Z Indexed on 2012/04/06 11:29 UTC
Read the original article Hit count: 330

Filed under:
|
|
|

I need to unzip en zip some files in my application using Shell32. Right now, I use srcFolder.CopyHere(destFolder.Items()) to achieve this. However, my next line of code requires the newly made ZIP-file. But since the CopyHere method is Async, how can I check when it in finished? Right now I use a Thread.Sleep for around 500 ms which is enough for my computer to finish creating the ZIP file, but it's not good code imo.

Any ideas?

More info/code can be provided if necessary.

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about asynchronous