Topic "Powershell limit speed"

Author Message
shcsbaker
[View user's profile]

Joined: 2014-12-11
Posts: 8
I'm trying to use the -speed switch and not sure how that works with powershell. Here is part of the code:

$session.PutFiles("C:\BackupTemp\*.rar", $remotePath1).Check()

Thanks
Kevin
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Code:
$transferOptions = New-Object WinSCP.TransferOptions
$transferOptions.SpeedLimit = xxx
$session.PutFiles("C:\BackupTemp\*.rar", $remotePath1, $False, $transferOptions).Check()

See https://winscp.net/eng/docs/library_transferoptions

You need to use 5.6.x to have the SpeedLimit.
shcsbaker
[View user's profile]

Joined: 2014-12-11
Posts: 8
Awesome! Thanks for the help! Just what I needed.
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