Zip and unzip a file in uipath

studio
zip

#1

Hi all,

I am working on a project where I have to unzip a file and do operation and zip it back. I am doing this using powershell code.
-> this code unzips a file
Expand-Archive -LiteralPath sourceFilePath -DestinationPath destinationFilePath

The problem I am facing is the powershell script does not accept wildcards.
Is there any other way to do this???

Regards
Devbrath


#2

Hello @devbrath
To use the wildcard you could use vb.net within UiPath possibly, then pass the filename to the script.
I believe System.IO.Directory.GetFiles() allows a searchpattern

You can also check out the Zip/Unzip Custom activity:

There is also an Invoke Method solution here:

Regards.


#3

Hi @devbrath and @ClaytonM ,
Can you check . If is this solve your problem.

Regards
Balamruugan