|
@echo off
:: Get current directory.
for /f "tokens=*" %%a in ('cd') DO SET DIR0=%%a
:: Set destination file, source list and exclusion list.
SET fil=JocysComSqlScriptsGenerator
SET dst="%DIR0%\%fil%.zip"
SET lst="%DIR0%\%fil%-Include.txt"
SET exc="%DIR0%\%fil%-Exclude.txt"
SET arc=%ProgramFiles%\WinRAR\winrar.exe
echo arc
SET zip="%arc%" a -ed -r -afzip -x@%exc%
echo DST=%dst%
echo LST=%lst%
echo EXC=%exc%
echo ZIP=%zip%
:: ---------------------------------------------------------------------------
:: Go to current folder
cd %DIR0%
echo --- Delete file if file with same name already exist.
IF EXIST %dst% del %dst%
echo --- Pack 'ReadMe.txt' file.
IF EXIST "ReadMe.txt" %zip% %dst% "ReadMe.txt"
:: Go back to WebApp folder.
cd "..\.."
cd
echo --- Pack all files in the list.
%zip% %dst% @%lst%
:: Go back to home/current folder.
cd %DIR0%
:end
pause
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.