Unzip and Rename If file in zip folder is same name

If I want Extract file to dedicated folder but if the same name of file Want to extract the file to a Dedicated folder, but the zip file has the same name. Want to rename newly extracted files in that folder.

Hi @Sarttra

→ Store the name of the Zip file in a String Variable called ZipName.
→ Use for each file in folder activity to iterate the extracted files in the dedicated folder, Insert If condition inside the for each to check the each file name with the Zip Name.
→ If condition is true, it went to then block insert the rename file activity in then block to rename the matched file name with Zip file name.

Check the below image for better understanding,

Hope it helps!!

Hi @Sarttra ,

Thanks for reaching out.

After you have completed the UnZipping of the file.
Check-in destination folder For Each File folder with each fileIf file has the same name then rename it

Hope it works for you.

Happy Automation
@Vinit_Kawle

1 Like