Topic "Scripting for WinSCP"

Author Message
WCW_BBC
[View user's profile]

Joined: 2008-08-20
Posts: 4
Location: London
Hello! I'm new to WinSCP and I am considering using it to pull files from a remote Linux server onto a Windows application server but need to know if it has certain functionality.

(1) Can I script WinSCP to poll a directory at certain intervals and retrieve the latest file(s) from the remote server? If so can anyone give me an example of the switches I will need to use?

(2) Can WinSCP be run as a Windows Service or will it need some sort of wrapper to do this?

(3) I notice that by default the app seems to revert to SFTP. Is there a way to stop this happening rather than having to change it every time the app is started.

Thanks in advance!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
WCW_BBC wrote:
(1) Can I script WinSCP to poll a directory at certain intervals and retrieve the latest file(s) from the remote server? If so can anyone give me an example of the switches I will need to use?

No. you can use Windows scheduler for that. See FAQ.

Quote:
(2) Can WinSCP be run as a Windows Service or will it need some sort of wrapper to do this?

No. you do not need that if you use the scheduler (which is service itself).

Quote:
(3) I notice that by default the app seems to revert to SFTP. Is there a way to stop this happening rather than having to change it every time the app is started.

In you can override the defaults on login dialog.
Or you can specify protocol directly on command line using protocol prefix (e.g. ftp://server).
_________________
Martin Prikryl
WCW_BBC
[View user's profile]

Joined: 2008-08-20
Posts: 4
Location: London
That's great.
Thanks for the reply!
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License