Welcome! Log In Create A New Profile

Advanced

Problem moving folder

Posted by norfolk-reg 
Problem moving folder
August 21, 2019 11:08AM
Hi all,

I have an application which contains a function to move a folder (possibly with several sub folders in it and various file types). Here's the code...

IF fMoveDir(JOB.FolderLocation,sArchivedir,frConfirm+frRecursive+frProgress) THEN
JOB.JobStatus = gnjobstatusarchived
JOB.ArchiveFolderLocation = sArchivedir
JOB.FolderLocation = ""
HModify(JOcool smiley
HTransactionEnd
Info("Job " + JOB.JobNumber + " has been Archive to folder " + sArchivedir)
ELSE
Error(ErrorInfo(errFullDetails)+CR+CR+"copy this message and contact Support")
HTransactionCancel
RETURN
END

This all works fine except for one particular folder, where the move fails with an error code 80064. The error message says to check if any files etc are open and if the user has sufficient rights, both of which I've eliminated as causes.

Does anyone have any other suggestions as to why this error might be happening?

Many thanks
Reg
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: