>I have this declaration:
>
>
> Dim loFile As New FileInfo(tcSource)
>
>
>Then, I want to move the file. I use something like this:
>
>
> loFile.MoveTo(tcDestination)
>
>
>Is it possible that this MoveTo() method is being executed in the background? I have a weird situation that, sometimes, once this command is being executed that the code which follows cannot see the file. I always assumed that method completes its operation before the code continues on the next line. But, what I am experiencing on a high volume transactions of moving file here and there leads me to think that there could be something behind all this.
I don't think the method runs asynchronously (nothing in the docs to indicate this is so).
You don't say where this code resides but if this is ASP.NET then is it possible, given the high volumes, that it is a threading issue?