Upload to SFTP, one folder with multiple different files and multiple folders on remote host

Advertisement

rudemaniac
Joined:
Posts:
1
Location:
Indiana

Upload to SFTP, one folder with multiple different files and multiple folders on remote host

I have a folder on server (D:\upload) that will contain multiple files (file1.txt, file2.txt, file3.txt, etc). I am trying to create a script that will upload file1.txt to folder on remote host that was created for the specific file (remote E:\file1\, E:\file2\, etc)
And when the file is uploaded successfully, it's moved to a common archive folder D:\archive on local host.
I have a script working that does the upload of the files to the corresponding folder on the remote host. But can't get the check and move to archive to work.
Have tried with the .NET dll and trying now with the PS WinSCP.com also.

Reply with quote E-mail

Advertisement

Advertisement

You can post new topics in this forum