In my WinForm application (VB.NET and VS2005), I check whether a target folder exists. If it does, I delete it recursively. I then copy a source folder to this target folder.
If the target folder doesn't exist, the code works fine. If it does exist, the folder delete does not finish before the copy starts, and this gives me an error. How can I force the code to not continue to the copy step until the delete folder step is completed?
...
Go to the complete details ...