geek

  • 1 Post
  • 5 Comments
Joined 5か月前
cake
Cake day: 2025年5月11日

help-circle




  • Thanks 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-File already 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-Null and Out-File have 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 with Out-File