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