Topic "Having problem to move the records to our archive folder"

Author Message
[View user's profile]
Joined: 2015-11-24
Posts: 20
I am able now to post the files on the remote server. Now we want to move them from their original spot to our archive folder. the following code
has in file, the folder path orig with the file, and the item.FolderPathArchive has the folder path of the archive folder.

It's not doing the move, am I missing anything here?

session.MoveFile(file, item.FolderPathArchive]);
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27106
Location: Prague, Czechia
It's difficult to help you, if you do not show us the exact values you are using.

Anyway, make sure the target path includes a file name (like /target/remote/path/file.ext).
Or if you need/want to use a directory path only, make sure the path ends with a slash (like /target/remote/path/).
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License