>Doesn't neccessarily rule out a threading issue - depends what triggers the call to the method containing the MoveTo (a file watcher for example)
The Robot.exe (the desktop application) includes a reference to Framework.dll, which does the MoveTo(). A few lines a command later, still in Robot.exe, a verification is made to see if the file exist. As surprisingly as it gets, the file no longer exist. So, the MoveTo() succeeded but the file is seen has not being there. The verification of the existence of the file is done by using DirectoryInfo(). This file exist verification is done intensively throughout the entire set of applications supported. So, I doubt there would be something in there that would conflict with the recognition of the file.
>Out of curiosity:
>Are you using MoveTo to move the file to a different partition or drive ?
>Does this tend to happen with larger files?
The MoveTo() moves the file from the same drive/logical disks. It is in fact under the same directory branch. We move it from one level to another.
The file size varies from 20 KB to 20 MB approximately.