Extraneous Console Output Interfering with Progress Bar
Found the cause. According to https://winscp.net/forum/viewtopic.php?t=24979, the output is a JSON representation of
Don't know why PowerShell thought that line required output, since it’s like many of the examples I’ve seen. In any case, I simply declared a
Bothersome that I don't understand why such a seemingly innocent line of code would cause that kind of problem. Ah well…
When I transfer, extraneous output is written to the console, and is interfering with my progress bar. I can't figure out where this output is coming from. It looks like this, written for each file:
Is the .NET Assembly creating this output? How do I stop it?
TransferEventArgs
. It was apparently triggered by the following line in my code:
$session.PutFileToDirectory($fileName, $folder, $remove, $options)
[WinSCP.TransferEventArgs]$result
object elsewhere, prepended it to the above code line, and voila! The problem disappeared.
Bothersome that I don't understand why such a seemingly innocent line of code would cause that kind of problem. Ah well…
When I transfer, extraneous output is written to the console, and is interfering with my progress bar. I can't figure out where this output is coming from. It looks like this, written for each file:
Side : Local Destination : /bib\w/wright.htm Length : 571 Touch : WinSCP.TouchEventArgs Chmod : Removal : FileName : C:\Users\John\Documents\tch\ssh\client\bib\w\wright.htm Error :