Ok, we can stop the discussion as it is really hard to explain.
You wrote that you have attached a file, did i understand that correct ?
Because i can not find a file.
But what is about the ZIP file content ?
I wrote that since 5.1 the ZIP file contains the subfolder structure.
I do not want to have that, i want to have a flat ZIP file with the logfile in it.
You can see that in the screenshot in the wordfile.
I attach the screenshot of the ZIP file to this post.
The file is \\files\mirrorlogs$\files\D_28.ZIP.
Then you see that there are the subfolders \files\mirrorlogs$
I think you need to break it down. It is hard for us to validate your flow based on the content. If the rename task is the problem I would create a simple rename Task and try to run it. The actual Variable should work as expected. I am guessing it something else. The Rename Task has changed since 4.x version. The change is in the destination file and you may want to look at these settings.
The changes were made to support file masks in the source and destination filename.
johannes.heesters attached the following image(s):