On Thu, Mar 6, 2014 at 7:07 AM, Roger Bilau <sf@bilau.de> wrote:

the script at first create a new directory with SysMkDir, so overwriting files can be excluded as a reason

Well, I don't know, I guess we need to see your code.  It'not a bug and it works fine for me.

SysMoveFile() simply invokes a single Windows API.  It is the Windows API that is returning the error code.

The Windows doc says the second argument is:

The new name for the file or directory. The new name must not already exist. A new file may be on a different file system or drive. A new directory must be on the same drive. 

Mark Miesfeld