I'm making a proof of concept to run the below winscp script on my local dev server. Could you please help?
option batch abort option confirm Off open sftp://username:password@server -hostkey="ssh-rsa 2048 mac-address" synchronize local local-directory remote-directory -filemask="|*.*_" exit
I need to run the script on my local dev server tranferring file from one folder to another (in the same server).
How do I modify the open command to meet this requirement?
I tried removing the open command from the script but that does nothing.