title: A WinSCP script to download, rename, and move files
body: <p><sup><em>Disclaimer #1: I posted this question on the WinSCP's <a href="https://winscp.net/forum/viewtopic.php?p=81727" rel="nofollow noreferrer">forum</a> but haven't received any replies and this issue is time-sensitive.<br>Disclaimer #2: I'm basing the legitimacy of this cross-post on <a href="https://meta.stackoverflow.com/questions/251469/should-i-ask-questions-that-have-been-answered-on-other-qa-sites/251475#251475">advice</a> found on the subject from Meta.<br>With that preamble...</em></sup></p>
  
  <p>Up until now, I have been been using WS_FTP but would like to switch to WinSCP. 
  I'm trying to convert this WS_FTP script into WinSCP: </p>
  
  <pre><code>"C:\Program Files (x86)\Ipswitch\WS_FTP 12\wsftppro.exe"
  -s "sftp://USERNAME:PASSWORD@ftpus.pointclickcare.com/USERNAME/logs/*.sqb"
  -d "local:C:\PccDataRelay\LogDownloads\"
  -rename tx_[yyyy]-[mm]-[dd]_[hh]-[tt]-[ss]_[OnlyName].[OnlyExt]
  -move "/USERNAME/logs/transferred/"
  </code></pre>
  
  <p>I've been able to convert it partially: </p>
  
  <pre><code>cd C:\PccDataRelay\TestDownloads
  
  "C:\Program Files (x86)\WinSCP\winscp.com" /ini=nul /log=C:\PccDataRelay\AuditLogs\incremental_download.log /command ^
      "open sftp://USERNAME:PASSWORD@ftpus.pointclickcare.com/USERNAME/logs/ -hostkey=""ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx""" ^
      "get /USERNAME/logs/*.sqb" ^
      "exit"
  </code></pre>
  
  <p>But that only <em>downloads</em> the files. How can I get it to <em>rename</em> and <em>move</em> the original files while also leaving them in-place on the FTP site? </p>