WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Plugins >> Unzip password protected file
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1483699470

Message started by The Ginger Monkey on Jan 6th, 2017 at 11:44am

Title: Unzip password protected file
Post by The Ginger Monkey on Jan 6th, 2017 at 11:44am
Hi

is there any clever way of unzipping a password protected zip file? This is a regular task that uses the same password every time. Doesn't look to be anywhere in the unzip plugin but I may have missed something

Cheers
TGM

Title: Re: Unzip password protected file
Post by Dirk on Jan 6th, 2017 at 12:17pm
Yes  :)
Use .bat-file plugin with a command line unzipper.
E.g. you can use 7zip and provide password in the script, something like
"c:\program files\7-zip\7z.exe" x "%WD_FILE%" -pPASSWORD

see:
http://7-zip.org/
https://sevenzip.osdn.jp/chm/cmdline/switches/password.htm
http://www.watchdirectory.net/wdhelp/plugins/wdopAutoRunBatEnv.html

Title: Re: Unzip password protected file
Post by Gert on Jan 8th, 2017 at 6:03am
We will add password support for the Unzip task in the next release (soon, probably next week).

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.