Powershell zip script skip files in use

Welcome Forums Pester Powershell zip script skip files in use

  • This topic has 1 reply, 2 voices, and was last updated 1 year ago by
    Senior Moderator
Viewing 1 reply thread
  • Author
    • #183360
      Topics: 1
      Replies: 0
      Points: 31
      Rank: Member

      Hello all,

      I have a script to run a backup of a server to another.

      The script is:

      Everything is going well, but only when there is no file in use.

      If any file is in use or opened in another process, i receive an error message like this one below:

      The operation is cutting that time.

      Is there any way to skip the file in use and continue with zip?

    • #184419
      Senior Moderator
      Topics: 9
      Replies: 1368
      Points: 5,038
      Helping Hand
      Rank: Community MVP

      Not sure whether its possible to zip a file which is used by another process, you can give an attempt using 7z.exe

Viewing 1 reply thread
  • The topic ‘Powershell zip script skip files in use’ is closed to new replies.