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

martin

Re: Request for MoveFiles VB.Net Exmple with WinSCP.dll

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.
tess

Request for MoveFiles VB.Net Exmple with WinSCP.dll

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