Topic "Getting the total volume of data transferred in a session"

Author Message
torix
[View user's profile]

Joined: 2015-11-11
Posts: 16
Location: Norway
Have searched around for a way to get total amount of data (bytes) transferred through a session but so far no luck.
Anyone have the magical answer?
(using Powershell)

Regards
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
There's no magical answer.
torix
[View user's profile]

Joined: 2015-11-11
Posts: 16
Location: Norway
prikryl wrote:
There's no magical answer.


I ended up solving this by looping through all files in the collection of successfully transferred files in the transfer result.

..
..
$script:amountOfData += (Get-Item $e.FileName).length
..
..

Last edited by torix on 2015-12-20 12:22; edited 1 time in total
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
Thanks for sharing your solution.
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