Post a reply

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


No problem, thanks for the confirmation. Excellent program btw..thanks for all scripting examples--very helpful!

Re: Get filesize or size downloaded during file Powershell transfer

No, that information is not provided currently.

Get filesize or size downloaded during file PowerShell transfer

I am using the FileTransferProgressEventArgs class with Filename, FileProgress, and CPS properties to display the name of the name, the percentage complete, and the transfer speed. I just followed the example using this line of code from one of the examples:
# Print transfer progress
Write-Host -NoNewline ("`r{0} ({1:P0})" -f $e.FileName, $e.FileProgress)

That all works great. What I was wondering if there was a way to display the amount of data downloaded while the files is transferring and/or the total size of the current file being transferred? Thanks!