Topic "KeepLocalUpToDate / Using Extensions"

Author Message
halycon

Guest


Hey,

i need to keep a locale dir syncronized with a remote dir, but i don't get the Extension "KeepocalUpToDate" running.
WinSCP is version 5.9.6, my OS is Windows Server 2008 R2.

When i try to execute the powershell script i only get the following error:
Code:

C:\Program Files (x86)\WinSCP>powershell.exe -ExecutionPolicy Bypass -File "c:\P
rogram Files (x86)\winscp\Extensions\KeepLocalUpToDate.WinSCPextension.ps1"

Cmdlet KeepLocalUpToDate.WinSCPextension.ps1 an der Befehlspipelineposition 1
Geben Sie Werte für die folgenden Parameter an:
localPath: "c:\"
remotePath: "/"
Error: Das Argument kann nicht an den Parameter "Path" gebunden werden, da es NU
LL ist.

The error says "the argument can not be bind to the parameter "path" because it's NULL:"

When i do the same thing on a windows 10 x64 machine, the script is running.

Is there some conditions regarding powershell versions or something?

Cheers,

halycon
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26515
Location: Prague, Czechia
I assume you do not have WinSCP .NET assembly package extracted along with your script.

That, combined with PowerShell 2.0 or older, gives you this cryptic error message.
Guest




Thank you. Mr. Green
Advertisements

You can post new topics in this forum






Search

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