Needing help scripting an auto download from a SFTP in C#
Hey everyone! I am needing some help to make a C# script to run an auto download from our SFTP. I did find this link https://winscp.net/eng/docs/library and the C# example is my template that I'm using. I do have a few questions on the code though. It has it uploading files while I'm needing the opposite. Would I need to change "transferResult = session.PutFiles" to "transferResult = session.GetFiles" ?
Also with the SshHostKeyFingerprint since I do not have the fingerprint is there a way I just bypass that? I saw in another forum post how you were able to bypass it using powershell.
And also how do I add a specialized port number to be able to connect to the SFTP?
Also how would I go about scheduling a time to run say a nightly download? Is that a Windows Scheduler thing that I would have to set up in windows?
I do appreciate it guys! I am new to coding and just trying to get my orientation with all of this. Any help you can give I would greatly appreciate it!
Also with the SshHostKeyFingerprint since I do not have the fingerprint is there a way I just bypass that? I saw in another forum post how you were able to bypass it using powershell.
And also how do I add a specialized port number to be able to connect to the SFTP?
Also how would I go about scheduling a time to run say a nightly download? Is that a Windows Scheduler thing that I would have to set up in windows?
I do appreciate it guys! I am new to coding and just trying to get my orientation with all of this. Any help you can give I would greatly appreciate it!