Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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


Re: Check status of each file transfer

It's not newer vs. older code. Both approaches are valid (and always were). It is your choice, what you want to check for.

Check status of each file transfer


I know there are a lot of posts about file move after success of file transfers. But, I noticed there are rather old code (example below).

Example from
# Iterate over every transfer
foreach ($transfer in $transferResult.Transfers)
    # Success or error?
    if ($transfer.Error -eq $Null)

The newer code that checks transfer status looks like ending the whole this
transferResult.Check() looks like an overall error check and I do not wanted this because at the end I don't know which files are actually successfully transferred and need to restart from beginning – it become disaster when the directory hold large number of files.
Advice needed. Thanks