Request for MoveFiles VB.Net Exmple with WinSCP.dll

Advertisement

tess
Joined:
Posts:
1
Location:
MYR

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum