Post a reply

Options
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)

Options

Topic review

martin

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

This is a generic programming question. This has nothing to do with WinSCP.
izzski

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

Hi,

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