Topic "synchronize locally any directory with remote directory"

Author Message
Leoninono

Guest


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:
Quote:
SynchronizationMode.Remote, @"d:\www","/home/martin/public_html ", false);

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


Thank you !!!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
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.

Quote:
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.
_________________
Martin Prikryl
Leoninono

Guest


Hi Martin,
Thanks for your reply!!!
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License