Try some of these utilities:
find-process-locked-file-openfiles-utility
As for robocopy, I've hardly ever used it but it seems to me that you're trying to remove the source directory and that directory is in use. Perhaps adding the "/E" switch to the parameters (i.e., leave the source directory in place) and deal with the directory's removal in some other way after the files have been moved.