Mirror a directory with one command

Advertisement

sumo.the.cat
Joined:
Posts:
2

Mirror a directory with one command

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!

Reply with quote

Advertisement

sumo.the.cat

Example

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?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Mirror a directory with one command

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"

Reply with quote

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.

Reply with quote

Advertisement

You can post new topics in this forum