Hello, we are using a PowerShell script to zip files up and add them to a .zip file. We have noticed in the past month that a file zipped earlier is getting overwritten by a file that came in later with a different name. For instance, we received file STDFEED_HGTDA00001... @ 12:20 am ET and was added to the archive (.zip) file around 1:00 am ET and it was only 376KB. However, later on, after other files were added to the archive the file was somehow updated to match file STDFEED_HGDDA00001... that was received at 2:56 am ET and added to the zip shortly after that.
We are not sure at what point the original file is getting changed, but this has happened several times in the past month and we only found this due to a different and unrelated issue. Has anyone reported this? The process adds to the archive throughout the day.
The process is being ran on Windows Server 2019.
We are using the following command to add files to the zip file:
C:\'Program Files'\7-Zip\7z.exe a -tzip -mx=5 "$ZipFile" "$SourceFiles"
$ZipFile is the archive file and $SourceFiles is the file(s) being zipped up which is sent as arguments for the calling script.
This does not happen all the time, but happens here and there. I have added a process to list the files in the zip file prior and after the zip process to see if we can catch when this is happening, but we are looking to see if this has been reported by anyone else.
Thank you
Trevor Strike
look sizes