Topic "MoveFile method. Moves file alright, but returns error 424"

Author Message
esjuhn
[View user's profile]

Joined: 2013-09-27
Posts: 3
Location: Philadelphia
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!
esjuhn
[View user's profile]

Joined: 2013-09-27
Posts: 3
Location: Philadelphia
Call mySession.MoveFile(strRemoteDir + strFileName, strRemoteDir + "archive/" + strFileName)
esjuhn
[View user's profile]

Joined: 2013-09-27
Posts: 3
Location: Philadelphia
mySession.MoveFile strRemoteDir + strFileName, strRemoteDir + "archive/" + strFileName
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License