Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 4a97738872
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (15 sloc) 0.727 kB
:: Zip Commands
:: http://www.codejacked.com/zip-up-files-from-the-command-line/
:: http://www.dotnetperls.com/7-zip-examples
:: ADD FILE TO ZIP FILE
::------------------------------------------
"C:\Program Files\7-zip\7z.exe" u -tzip text.zip outfile.txt
:: ADD FILE TO ZIP FILE, THEN DELETE FILE
::------------------------------------------
"C:\Program Files\7-zip\7z.exe" u -tzip text.zip outfile.txt && del outfile.txt
:: Extract a specific file from a zip file
::------------------------------------------
:: If root directory:
"C:\Program Files\7-zip\7z.exe" e TestZipFile.zip TestZipFile\outfile.txt
:: If deeper directory (in this case, an Excel file):
"C:\Program Files\7-zip\7z.exe" e Test.xlsx xl\media\image1.gif
Jump to Line
Something went wrong with that request. Please try again.