Here is a demo project to show how to use the SharpLib dll which is installed with the product to zip a folder or zip a file. There is also an automation to find the current RuntimeLog and zip it up. This was built in 8.0.1076 and requires at least 8.0.1053 to open.
// Script generated by Pega Robotics Studio 8.0.1063.0
// Please use caution when modifying class name, namespace or attributes
public sealed class Script
public void NewMethod1(string inputpath,string outputPath)
using (ZipFile zip = new ZipFile())
zip.Password = "password";
I tried with your script and dll, but working out getting error like "Message: "Error executing link in Automation: Zop_Auto - From: OpenSpan.Runtime.RuntimeHost.ProjectStarted To: Global_Container1.script1.NewMethod1()"
Passing paths as:
Inputpath:C:\Users\gururaju\Desktop\test\txttest (This folder has ont .txt file)
Note: I tried with following also Inputpath:C:\Users\gururaju\Desktop\test
can you share screen shots of your code automation and code contains in script component???
There are certainly lots of ways to do this :) and thanks for sharing. Sharplib is already included with the product, hence the reason why I presented this solution. This is not new info - there was a post over a year ago with similar information. At the time we couldn't actually post solutions to PSC so now that we can I thought it would be good to add one for anyone who might want to use it to get a head start.