How to rename a zip file

Hello,

How to rename a zip file? My robot compresses files to zip and I would like to rename this zip, but I don’t know how.

Thank You.

Hi @sullivanne
By using “Rename File” activity you can rename it.
image

@sullivanne
use move activity and give full path in from block and give same full path with new name.

Hi @sullivanne

To rename a zip file in UiPath, you can use the Rename File activity. Here’s how you can do it:

  1. First, make sure you have the path to the original zip file stored in a variable. Let’s call it originalFilePath.
  2. Create a new variable to store the new name for the zip file. Let’s call it newFileName. Assign the desired new name, including the .zip extension, to this variable.
  3. Add the Rename File activity to your workflow. Configure it as follows:
  • Set the Path property of the activity to originalFilePath.
  • Set the NewName property to newFileName.
  1. After executing the Rename File activity, the zip file will be renamed according to the value you provided in the newFileName variable.

Thanks!!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.