Post a reply

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)


Topic review


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