Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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

Yes, that's correct.
clyded

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
martin

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.
clyded

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