4coder/code/bin/zip.bat

10 lines
278 B
Batchfile
Raw Permalink Normal View History

2016-09-05 01:27:37 +00:00
@echo off
REM Usage: zip <archivename>
REM compresses the current directory into a zip named <archivename>.zip
2017-06-23 00:41:23 +00:00
SET ZIP_PATH=C:\Program Files (x86)\7-Zip
IF NOT EXIST "%ZIP_PATH%" (SET ZIP_PATH=C:\Program Files\7-Zip)
IF EXIST "%ZIP_PATH%" ("%ZIP_PATH%\7z.exe" a -tzip -y %*)