when attempting to move files with SysFileMove, I get a RC=5 and with SysGetErrorText the message 'Access denied’.


If I instead use ‘MOVE /Y source target’ in the same rexx script, it run successfully.

Drag and drop in the windows explorer also run successfully.


The owner of the files, I like to move, is the same user, with which I opened the command prompt.

If I opened a command prompt as an administrator, the script with SysFileMove is also not running.


Is this a bug? Or can someone explain to me what I am doing wrong?

Or how can I find out why SysFileMove  with an RC = 5 answers?