Topic "Can anything else be done with Write-Host ("Upload of {0} succeeded" -f $transfer.FileName)"

Author Message



I'm stuck on a portion of a PowerShell upload script, once the files have been uploaded the following is executed:
Write-Host ("Upload of {0} succeeded" -f $transfer.FileName)

Is there anything else that can be done here instead of write-host? would like to keep the values in a variable, preferably a custom object with Filename property and issuccess property.

Thanks, erik
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
This is a generic programming question. This has nothing to do with WinSCP.

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License