geek
- 1 Post
- 3 Comments
Joined 9 months ago
Cake day: May 11th, 2025
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
Zac@programming.devOPto
Powershell@programming.dev•Does `Out-Host` also signify `Copy-Item` has finished (as `Out-Null` does)?
1·9 months agoThanks for the reply.
I think your first option can give a false positive if the file is started to exist but hasn’t been completely written to. (Except if
Out-Filealready implies that it’s done being written, so the next part isn’t really needed.)The second one is good, but I don’t need console output. Just logging.
I’m looking for confirmation that both
Out-NullandOut-Filehave the same (side) effect of making sure the file is done being copied before continuing to the next line of the script. If so, I’ll stick withOut-File
there was no regex in ancient rome