synchronize locally any directory with remote directory

Advertisement

Leoninono
Guest

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 !!!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum