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

Leoninono

synchronize locally any directory with remote directory

Hi Martin,
Thanks for your reply!!!
martin

Re: synchronize locally any directory with remote directory

Leoninono wrote:

How and where you create this batch file?

You can create it using any text file editor, e.g. Notepad. Save it to any folder you want, e.g. you document folder.

And it would be possible to use this batch file wrapper in .NET Assembly ??

It does not make sense. Maybe you mean if you can call the assembly from the batch file and pass the path. You can, e.g. using PowerShell.
Leoninono

synchronize locally any directory with remote directory

Hi there,
It is the first time I use winscp, and I am a rookie. I'm trying to run the process as indicated in the help guide called "Shortcut to synchronize locally any directory with remote directory", but do not understand the section that says "First create wrapper batch file to store the paths you want to synchronize into environment variables".
How and where you create this batch file?
Could you show me an example as shown in this help section ??
And it would be possible to use this batch file wrapper in .NET Assembly ??
Examples:
For C #
This:
SynchronizationMode.Remote, @"d:\www","/home/martin/public_html ", false);

For this:
SynchronizationMode.Remote,wrapper batch file, false);
(I Do not know if the syntax is correct)
Or to VB.Net
This:
SynchronizationMode.Remote, "d:\​​www","/home/martin/public_html",False)
For this:
SynchronizationMode.Remote, wrapper batch file, False)
(I do not know if the syntax is correct)


Thank you !!!