Proof of concept to run the below winscp script on my local dev server

Advertisement

clyded
Joined:
Posts:
3

Proof of concept to run the below winscp script on my local dev server

Hi All,
I'm making a proof of concept to run the below winscp script on my local dev server. Could you please help?

Original script
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

Proposed
I need to run the script on my local dev server tranferring file from one folder to another (in the same server).

Question
How do I modify the open command to meet this requirement?
I tried removing the open command from the script but that does nothing.

Thanks,
Clyde

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Proof of concept to run the below winscp script on my local dev server

Do you want WinSCP to synchronize files between two local folders? - i.e. no connection to any server.

WinSCP cannot do that. You would have to install/configure SFTP/FTP server on the local machine.

Reply with quote

clyded
Joined:
Posts:
3

Re: Proof of concept to run the below winscp script on my local dev server

Thanks, Martin.

Apologies, I'm a bit new to this - so, just to confirm:
- I should be able to follow this article: https://winscp.net/eng/docs/guide_windows_ftps_server to setup IIS on my Windows server and then open a connection to the same server?
- And then the local directory transfer would work?

Thanks,
Clyde

Reply with quote

Advertisement

You can post new topics in this forum