Topic "PowerShell - Session.FileTransferProgress Event - Frequency"

Author Message
[View user's profile]

Joined: 2015-01-16
Posts: 4
Hello !

I'm working on a script which download automatically files on a distant serveur through SSH.

For that, I'm developing a script in Powershell with WinSCP Library. Many Thanks for this nice library and all example provided on your website !

I succeed to trigger the FileTransferProgress event in my code, but as I'm downloaded big piece of software, I would like to slow down the frequency of this trigger.
Presently, it's around every second, and I would like to move to something like every 30 seconds.

Is there a way to modify the frequency of the trigger ?

Thanks for your help !
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26479
Location: Prague, Czechia
Why? You do not need to process every call you get. Just use only every 30th call.
Martin Prikryl
[View user's profile]

Joined: 2015-01-16
Posts: 4
Thanks Priryl for your answer.

Yes, that what I finally done : I set a variable to make a treatment every x seconds.

However, I think it is more efficient to be able to trigger that call at a choosen rate.

But I have a workaroud, so it's ok Smile

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License