home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 8
/
CDASC08.ISO
/
NEWS
/
4415
/
SUPPORT.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-10-07
|
2KB
|
70 lines
@echo off
REM SUPPORT.BAT
REM Packs archive files SWAGX-Y using current .SWG files,
REM Support sites DO NOT have to download the ENTIRE SWAG files package
REM with each release. All that is necessary is to download SWAGYYMM.ZIP
REM OR ALLSWAGS.ZIP. SWAGYYMM.ZIP can be used to update the current copy
REM of ALLSWAGS.ZIP that the support site has. Once this is done, the
REM smaller support archives can be created with this batch file.
REM This makes it easy for Support sites to download ONLY the SWAG update
REM or the ALLSWAGS.ZIP and create the five supporting archives.
REM
REM There are TWO varibles needed with this batch file.
REM %1 is the directory location of your SWAG ZIP files.
REM %2 is the directory location of your *.SWG files.
REM therefore, call this for DOS : support [swagzips] [swagfiles]
IF "%1" == "" GOTO SYNTAX
IF "%2" == "" GOTO SYNTAX
REM Create SWAGA-C.ZIP
DEL %1\swaga-c.zip
PKZIP -ex %1\swaga-c.zip %2\a????????.swg
PKZIP -ex %1\swaga-c.zip %2\b????????.swg
PKZIP -ex %1\swaga-c.zip %2\c????????.swg
REM Create SWAGD-F.ZIP
DEL %1\swagd-f.zip
PKZIP -ex %1\swagd-f.zip %2\d????????.swg
PKZIP -ex %1\swagd-f.zip %2\e????????.swg
PKZIP -ex %1\swagd-f.zip %2\f????????.swg
REM Create SWAGG-M.ZIP
DEL %1\swagg-m.zip
PKZIP -ex %1\swagg-m.zip %2\g????????.swg -x%2\grepswag.???
PKZIP -ex %1\swagg-m.zip %2\h????????.swg
PKZIP -ex %1\swagg-m.zip %2\i????????.swg
PKZIP -ex %1\swagg-m.zip %2\j????????.swg
PKZIP -ex %1\swagg-m.zip %2\k????????.swg
PKZIP -ex %1\swagg-m.zip %2\l????????.swg
PKZIP -ex %1\swagg-m.zip %2\m????????.swg
REM Create SWAGN-R.ZIP
DEL %1\swagn-r.zip
PKZIP -ex %1\swagn-r.zip %2\n????????.swg
PKZIP -ex %1\swagn-r.zip %2\o????????.swg
PKZIP -ex %1\swagn-r.zip %2\p????????.swg
PKZIP -ex %1\swagn-r.zip %2\q????????.swg
PKZIP -ex %1\swagn-r.zip %2\r????????.swg
REM Create SWAGS-Z.ZIP
DEL %1\swags-z.zip
PKZIP -ex %1\swags-z.zip %2\s????????.swg
PKZIP -ex %1\swags-z.zip %2\t????????.swg
PKZIP -ex %1\swags-z.zip %2\u????????.swg
PKZIP -ex %1\swags-z.zip %2\v????????.swg
PKZIP -ex %1\swags-z.zip %2\w????????.swg
PKZIP -ex %1\swags-z.zip %2\x????????.swg
PKZIP -ex %1\swags-z.zip %2\y????????.swg
PKZIP -ex %1\swags-z.zip %2\z????????.swg
CANCEL
:SYNTAX
ECHO SUPPORT.BAT Create SWAG Support ZIPS from *.SWG Files
ECHO SYNTAX: SUPPORT [swagZIPpath] [swagFILESpath]
ECHO e.g. "SUPPORT \swag\zips \swag\files"