Topic "VBScript - session.SynchronizeDirectories not found"

Author Message
alsotropino
[View user's profile]

Joined: 2014-03-03
Posts: 2
Location: Spain
Calling SyncronizeDirectories in VBScript:

Set transferResult = session.SynchronizeDirectories(SynchronizationMode_Remote, cLocal, cRemoto, True, True, SynchronizationCriteria_Either, transferOptions)

results in a runtime error:
the object doesn´t accept this property or method: 'session.SynchronizeDirectories'

other methods (e.g. PutFiles) work properly.


Debug log says:

[2014-03-03 10:26:19.599Z] [0001] Session.System.Reflection.IReflect.InvokeMember entering
[2014-03-03 10:26:19.599Z] [0001] Name [SynchronizeDirectories]
[2014-03-03 10:26:19.599Z] [0001] Target [WinSCP.Session]
[2014-03-03 10:26:19.599Z] [0001] Args [7] [null]
[2014-03-03 10:26:19.599Z] [0001] Arg [0] [1] [null]
[2014-03-03 10:26:19.599Z] [0001] Arg [1] [F:\ftproot\portal] [null]
[2014-03-03 10:26:19.599Z] [0001] Arg [2] [/opendata/] [null]
[2014-03-03 10:26:19.599Z] [0001] Arg [3] [True] [null]
[2014-03-03 10:26:19.599Z] [0001] Arg [4] [True] [null]
[2014-03-03 10:26:19.599Z] [0001] Arg [5] [3] [null]
[2014-03-03 10:26:19.599Z] [0001] Arg [6] [WinSCP.TransferOptions] [null]
[2014-03-03 10:26:19.599Z] [0001] Culture [en-US]
[2014-03-03 10:26:19.599Z] [0001] Invoking
[2014-03-03 10:26:19.599Z] [0001] Error [System.MissingMethodException: No se puede encontrar el método 'WinSCP.Session.SynchronizeDirectories'.
en System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
en WinSCP.Session.System.Reflection.IReflect.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters)]
[2014-03-03 10:26:19.599Z] [0001] Session.System.Reflection.IReflect.InvokeMember leaving

The error message is in spanish, translated:
"No se puede encontrar el método" => "method can't be found"

I'm using version 5.1.4:

[2014-03-03 10:26:19.286Z] [0001] Version of C:\tools\portable\WinSCP_514\WinSCP.exe is 5.1.4.3020, product WinSCP version is 5.1.4.0

Thanks in advance.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Thanks for your report.

This bug has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=1136

I will send you an email with a dev version of WinSCP for testing to address you have used to register on this forum.
alsotropino
[View user's profile]

Joined: 2014-03-03
Posts: 2
Location: Spain
Dev version seems to work properly.

Thanks.

Good product, better support.
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