<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hi.Â 
Great Post!Â 
I'mâ€¦ in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Zip-Unzip-files/m-p/52967#M7761</link>
    <description>Hi.Â&amp;nbsp;
Great Post!Â&amp;nbsp;
I'm struggling replicating this code trying to UNZIP files with password usingÂ&amp;nbsp;WZUNZIP.exe.Â&amp;nbsp;
Any idea how to create the code when trying to unzip a zip file?Â&amp;nbsp;
Also, i have tried to create a code;Â&amp;nbsp;
@echo off
set yourZipPassword=[password]
set yourFolderPath=[location]
for /R "%location%" %%I in ("*.zip") do (
Â&amp;nbsp; "C:\Program Files\WinZip\WZUNZIP.exe" x -sPassword -y -o"%%~dpI" "%%~fI"Â&amp;nbsp;
)
Â&amp;nbsp;
But the command promt returns; ERROR: missing suboption in option y
Â&amp;nbsp;
Thanks!</description>
    <pubDate>Fri, 10 May 2019 13:40:00 GMT</pubDate>
    <dc:creator>NielsHansegård</dc:creator>
    <dc:date>2019-05-10T13:40:00Z</dc:date>
    <item>
      <title>Zip/Unzip files</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Zip-Unzip-files/m-p/52962#M7756</link>
      <description>Hi everyone!

I need to zip a group of files in a .zip, this zip has to be encrypted with a password. Also i want to unzip a .zip file into a directory. I want to create that object, and tried to many times, but didnt work.

I've looking for this in the forums but all the topics are like "you have to copy and paste this into a code stage but need a reference to a dll", didnt found a step by step on how to do that, and my english is not that good &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;

if you could help me in any way ill be grateful

Greetings, Daniel.</description>
      <pubDate>Thu, 04 Apr 2019 02:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Zip-Unzip-files/m-p/52962#M7756</guid>
      <dc:creator>Daniel_Sanhueza</dc:creator>
      <dc:date>2019-04-04T02:24:00Z</dc:date>
    </item>
    <item>
      <title>Hello, dsanhuezai
 
I was in…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Zip-Unzip-files/m-p/52963#M7757</link>
      <description>Hello, dsanhuezai
&amp;nbsp;
I was in the same position you are right now last year.
&amp;nbsp;
To create&amp;nbsp; a zip file with password, I thing you would need program that are specialized in making zip file (7zip, WinZip, etc.)
In my case I used WinZip to create a zip file with password.
Use ""Utility Environment - Start Process"" and set the following parameter
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Application&amp;nbsp;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;""C:\Program Files (x86)\WinZip\WZZIP.EXE""&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;※Please make sure where your zip file making program's exe&amp;nbsp;is at※&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Argument&amp;nbsp;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&amp;nbsp;-a -p -r -s"""" """" ""\*.*""
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;※Replace  with a password that you want※&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;※Replace  with a full path of the zip file you want&amp;nbsp; (ex.D:\Desktop\TEST.zip)※&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;※Replace  with a path of folder where all of the files you want are saved (ex. D:\Source)※&amp;nbsp;
For unzipping the file you could follow the similar approach (use Start Process action)
Please try following the link below and try to unzip the file
&lt;A href="http://www.memecode.com/docs/winzip.html" target="test_blank"&gt;http://www.memecode.com/docs/winzip.html&lt;/A&gt;
&amp;nbsp;
Regards,
Met Vonghiran&amp;nbsp;&amp;nbsp;</description>
      <pubDate>Thu, 04 Apr 2019 12:12:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Zip-Unzip-files/m-p/52963#M7757</guid>
      <dc:creator>MetVonghiran</dc:creator>
      <dc:date>2019-04-04T12:12:00Z</dc:date>
    </item>
    <item>
      <title>Hello and thanks for the…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Zip-Unzip-files/m-p/52964#M7758</link>
      <description>Hello and thanks for the quick answer!
I did what you post here but with no results
For this example, i just created a empty folder to zip it. so, in the arguments i wrote :&amp;nbsp;""-a -p -r -s '123' ""&amp;amp;[ZipFile]&amp;amp;"" ""&amp;amp;[SourceFolder]&amp;amp;"".*"" i replace the """" for '' in the arguments, because with """" inside, didnt work.
I tried to put the complete argument with no """" and no '', but again nothing happened.
Think im missing something, but dont know what.
&amp;nbsp;
Should i do something else?&amp;nbsp;</description>
      <pubDate>Sat, 06 Apr 2019 00:02:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Zip-Unzip-files/m-p/52964#M7758</guid>
      <dc:creator>Daniel_Sanhueza</dc:creator>
      <dc:date>2019-04-06T00:02:00Z</dc:date>
    </item>
    <item>
      <title>If you have .NET/Powershell…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Zip-Unzip-files/m-p/52965#M7759</link>
      <description>If you have .NET/Powershell 5 on that box (this is installable if you don't have it), there's a zip command built in to that you can use. An example compression powershell script is below.&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-markup"&gt;Param(
    $source,
    $destination,
    $level,
    $confirm,
    $force,
    $whatif
)

$Params = @{
    Path = $source
    DestinationPath = $destination
};
# = " -Path " + $source

if($level -ne $Null)
{
    #$paramlist += " -CompressionLevel " + $level
    $Params.Add("CompressionLevel",$level);
}
if($confirm -eq "True")
{
    #$paramlist += " -Confirm"
    $Params.Add("Confirm",'');
}
if($force -eq "True")
{
    #$paramlist += " -Force"
    $Params.Add("Force",$force);
}
if($whatif -eq "True")
{
    #$paramlist += " -WhatIf"
    $Params.Add("WhatIf",'');
}

#$paramlist += " -DestinationPath " + $destination

Compress-Archive @Params 
​&lt;/PRE&gt;</description>
      <pubDate>Sat, 06 Apr 2019 01:10:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Zip-Unzip-files/m-p/52965#M7759</guid>
      <dc:creator>AmiBarrett</dc:creator>
      <dc:date>2019-04-06T01:10:00Z</dc:date>
    </item>
    <item>
      <title>Hello, dsanhuezai
 
First…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Zip-Unzip-files/m-p/52966#M7760</link>
      <description>Hello, dsanhuezai
&amp;nbsp;
First thing first, I'm glad that you also happened to be using WinZip as well.
I couldn't replicate the error message that you had. but here is how you can troubleshoot it.
Create a text file and within that text file please insert following command:
	""C:\Program Files (x86)\WinZip\WZZIP.EXE"" -a -p -r -s""password"" ""ZipFilePath"" ""Source_Folder\*.*""
	※Change the password, ZipFilePath, Source_Folder&amp;nbsp;accordingly. ※
	&amp;nbsp;
""Save as"" the text file and change the extension to "".bat"" file
	&amp;nbsp;
Run the bat file (without using BP, just double click on the bat file). This way you can try and see if there's any error message comes up or not.
	&amp;nbsp;
Please Note that you cannot create a zip file from an empty folder, and your password must be more than 8 characters.
&amp;nbsp;
Also, it might be a good idea to try amibarrett's solution (The post above) as well.
&amp;nbsp;
Regards,
Met Vonghiran
&amp;nbsp;
&amp;nbsp;</description>
      <pubDate>Mon, 08 Apr 2019 06:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Zip-Unzip-files/m-p/52966#M7760</guid>
      <dc:creator>MetVonghiran</dc:creator>
      <dc:date>2019-04-08T06:24:00Z</dc:date>
    </item>
    <item>
      <title>Hi.Â 
Great Post!Â 
I'mâ€¦</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Zip-Unzip-files/m-p/52967#M7761</link>
      <description>Hi.Â&amp;nbsp;
Great Post!Â&amp;nbsp;
I'm struggling replicating this code trying to UNZIP files with password usingÂ&amp;nbsp;WZUNZIP.exe.Â&amp;nbsp;
Any idea how to create the code when trying to unzip a zip file?Â&amp;nbsp;
Also, i have tried to create a code;Â&amp;nbsp;
@echo off
set yourZipPassword=[password]
set yourFolderPath=[location]
for /R "%location%" %%I in ("*.zip") do (
Â&amp;nbsp; "C:\Program Files\WinZip\WZUNZIP.exe" x -sPassword -y -o"%%~dpI" "%%~fI"Â&amp;nbsp;
)
Â&amp;nbsp;
But the command promt returns; ERROR: missing suboption in option y
Â&amp;nbsp;
Thanks!</description>
      <pubDate>Fri, 10 May 2019 13:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Zip-Unzip-files/m-p/52967#M7761</guid>
      <dc:creator>NielsHansegård</dc:creator>
      <dc:date>2019-05-10T13:40:00Z</dc:date>
    </item>
  </channel>
</rss>

