Topic "Mirror a directory with one command"

Author Message
sumo.the.cat
[View user's profile]

Joined: 2010-02-17
Posts: 2
Hi there,

Is WinSCP capable of mirroring an entire local directory to a remote FTP location using one command? I'm launching from a managed .NET application using something like Process.Start(exe, args) so I'd rather not do any explicit scripting.

Many thanks!
Advertisements
sumo.the.cat
[View user's profile]

Joined: 2010-02-17
Posts: 2
For example, with Robocopy I would call something like Process.Start("robocopy.exe", "C:\Source \\remote\destination /MIR") - can I do something similar with WinSCP and a remote ftp://remote/destination URL?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
WinSCP can do that.
Please read documentation. If that does not help, come back.

Shortly something like:
winscp.exe /console /command "option batch on" "open session" "synchronize local remote"
_________________
Martin Prikryl
Guest




Thanks! I didn't quite realise from the docs that the /command switch was exactly what I needed. Thanks for your help and your work on WinSCP - it's awesome!

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