Topic "Mirror a directory with one command"

Author Message
[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!
[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?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27059
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

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!


You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License