

SshHostKeyFingerprint = "ssh-rsa 2048 xxxxxxxxxxx.=" $sessionOptions = New-Object WinSCP.SessionOptions -Property = ::Sftp So it's not easy to implement this task in a simple scripting so that it behaves transactionally (renames and moves only the files that were successfully downloaded)īut you can use WinSCP. WinSCP does not have a feature similar to -rename and -move switches. How can I get it to rename and move the original files while also leaving them in-place on the FTP site? "open -hostkey=""ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx""" ^īut that only downloads the files.

"C:\Program Files (x86)\WinSCP\" /ini=nul /log=C:\PccDataRelay\AuditLogs\incremental_download.log /command ^ I've been able to convert it partially: cd C:\PccDataRelay\TestDownloads

I'm trying to convert this WS_FTP script into WinSCP: "C:\Program Files (x86)\Ipswitch\WS_FTP 12\wsftppro.exe" Up until now, I have been been using WS_FTP but would like to switch to WinSCP. Disclaimer #1: I posted this question on the WinSCP's forum but haven't received any replies and this issue is time-sensitive.ĭisclaimer #2: I'm basing the legitimacy of this cross-post on advice found on the subject from Meta.
