Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

esjuhn

Or this works too

mySession.MoveFile strRemoteDir + strFileName, strRemoteDir + "archive/" + strFileName
esjuhn

Solution from a colleague

Call mySession.MoveFile(strRemoteDir + strFileName, strRemoteDir + "archive/" + strFileName)
esjuhn

MoveFile method. Moves file alright, but returns error 424

Good morning/evening, wherever you happen to be.

I believe I'm having a problem whose solution is simple, but it belies my utter naivete. Here it is:

The following code (VB in MS Access) raises a runtime error 424, Object Required, however it successfully moves the file.

mySession.MoveFile(strRemoteDir + strFileName, strRemoteDir + "archive/" + strFileName).Check

This code has the same outcome: 424, but a successful move.

Dim moveResult As TransferOperationResult
Set moveResult = mySession.MoveFile(strRemoteDir + strFileName, strRemoteDir + "archive/" + strFileName)

What am I missing? Any assistance will be much appreciated!