Topic "Request for MoveFiles VB.Net Exmple with WinSCP.dll"

Author Message
tess
[View user's profile]

Joined: 2013-04-16
Posts: 1
Location: MYR
Hi,

I facing a difficultly in writing the vb.net code for moving files from a remote directory to another remote directory.
Here my code:

session.Open(sessionOptions)

session.MoveFile("/Folder1/Name.txt", "/Folder1/Backup/Name.txt")


When I run the code, the error came our "Error moving file '/Folder1/Name.txt' to '/Folder1/Backup/Name.txt'. "

Is my coding correct? Please provide some vb.net code samples. thx
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Your code looks good.

Does /Folder1/Backup folder even exist?

I believe the error message you have posted is not complete. There must be some more details in it.
_________________
Martin Prikryl
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