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

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

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"
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?
sumo.the.cat

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!