Re: WinSCP error when connecting to SFTP server
@horts is correct, it should be:
See See https://winscp.net/eng/docs/faq_batch_file#cmd
C:
cd "C:\Program Files (x86)\WinSCP"
winscp.com /command ^
"open sftp://xxyyzz:AABBCC:2055@192.168.1.10 -hostkey=""ssh-rsa 2048 11:22:33:44:55:66:77:88:99""" ^
"get -filemask=*>=%TIMESTAMP#yyyy-mm-dd% /xxyyzz/* D:\Interfaces\Mauritius\IWIN\" ^
"close"
move D:\Interfaces\Mauritius\IWIN\BS*.txt D:\Interfaces\Mauritius\IWIN\BS\Inbound
move D:\Interfaces\Mauritius\IWIN\CA*.txt D:\Interfaces\Mauritius\IWIN\CA
move D:\Interfaces\Mauritius\IWIN\CTR*.txt D:\Interfaces\Mauritius\IWIN\CTR\Inbound
move D:\Interfaces\Mauritius\IWIN\DIV*.txt D:\Interfaces\Mauritius\IWIN\DIV\Inbound
move D:\Interfaces\Mauritius\IWIN\STK.txt D:\Interfaces\Mauritius\IWIN\STK\Inbound
pause
See See https://winscp.net/eng/docs/faq_batch_file#cmd