Extract files from .rar file

Is there any in built activities in UiPath to extract the files from a .rar folder. I want to extract the files and save it in a new folder with Today’s date as the folder name.

I can suggest using bash script which calls unrar:

folder_name=$(date +"%d-%m-%Y")
mkdir $folder_name
mv arch.rar $folder_name/
cd $folder_name
unrar arch.rar

You can use it under Linux, Mac or Windows WSL2. You can call it from UI Path

1 Like

Dont start with an extra program for any archive format, better use 7zip for unpack everything. Use Start Process Activity for calling the exe with parameters, not a script. Also for creating dir with timestamp, there are simple activities to keep the project readable.
https://www.7-zip.org/

2 Likes

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