I have a zip file that requires a password to extract the file inside of it. Is there away to do this automatically Can't find any software that does this.
Mike
I have a zip file that requires a password to extract the file inside of it. Is there away to do this automatically Can't find any software that does this.
Mike
Anyone know a self extracting tool for a zip file?
Marius Onofrei
Depends on the tool you're using.
SOAC
expression: " e " + @[User::ZipFileName] + " -y" + " -ptestpassword"
evaluates to: "C:\Program Files\7-Zip\7z.exe" e "D:\Test\Dropoff\update2.zip" -y -ptestpassword
you might want to try getting your command to run from a dos prompt. once you verify it does what you want, create the expression to duplicate it.
Frank
sennekeennes
I'm not sure exactly what you mean, but it kind of sounds like you want to use the Recursive Subdirectories switch "-r"
There is a "Swtiches" "Quick Reference" in the help file that may have more guidance there.
Salvatore Di Fazio
The spaces in the directory names can cause problems in a command line.
from the help file:
Wildcards or filenames with spaces must be quoted:
Also need to make sure that the exe is being called from the correct path, or make sure that the exe is in your Path$.
also, try to access the help file that came with 7-zip. There is a section titled "Command Line Syntax". This should prove to be invaluable.
glenntoy
Mike,
To do this, I used an expression for the Execute Process 'arguments' property:
@[User::ZipFileName] + " -p " + @[User::ZipFilePassword]
Frank
Simon Gorski
7-zip is free and has the same switch:
http://www.7-zip.org/
-p (set Password) switch
Specifies password.
Syntax
-p{password}Example
extracts all files from archive.zip using password "secret".
Imran Farooqui
Thanks for the example. So, what would be the syntax for zipping each individual file in a directory
Derek Comingore
Mike,
With Winzip, use the command-line parameter 'P' followed by the password.
Frank
pRtkL xLr8r
Frank,
What does the outcome look like in your expression above
GethWho
streetpc
Frank, thanks but still not sure what I'm doing wrong but is there anyway I could email screenshots to you I'm using the variables like you suggested and putting them in the argument property under expressions. It stops at the \usr folder in my path name below and prompts for a password
Here is my filename and path, the OSU20060824 is the file I'm trying to unzip from this folder.
C:\Documents and Settings\mroush\Desktop\Cnet Apps File\OSU20060824.zip\usr\local\formatting\v1.0\processing\osu\OSU20060824
don't I just add the "-p mike" password after the filename in my variable
Mike
Rick3581
Does the file have to be added as an archive to 7-zip Is this the only way that it will work It gets all the way to the folder that needs extracted and stops. Here is what my expression looks like:
7z x "C:\Documents and Settings\mroush\Desktop\Cnet Apps File\OSU.zip\usr" p-mr1
Mike
Scott Leathers
I didn't know about 7-zip. Thanks!
Frank
bobbins
I've downloaded this software, how do I test this or get it to work I'm using the below as an argument in SQL 2005.
7z x C:\Documents and Settings\mroush\Desktop\Cnet Apps File\OSU20060824.zip -pmike
Mike