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

Advertisement

izzski
Guest

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum