home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
BUSINESS
/
VNDNFO10.ZIP
/
EXAMPLES.ZIP
/
GAMHAVEN.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-01-04
|
3KB
|
75 lines
EXAMPLE ONLY, FOR ILLUSTRATIVE PURPOSES; MUST BE CUSTOMIZED FOR YOUR USE
(next statement extraneous, to prevent accidental execution)
goto done
echo off
cls
goto start
:usage
echo .=================================================================
echo .===== gamhaven.bat -- test for game, distributable on our =====
echo .===== free ASP-member games-only BBS =====
echo .===== =====
echo .===== usage: =====
echo .===== gamhaven <original_pkg> =====
echo .===== =====
echo .===== where: =====
echo .===== original_pkg is full pathname of compressed =====
echo .===== package that has been uncompressed in currdir =====
echo .===== =====
echo .===== example: =====
echo .===== gamhaven c:\incoming\doom100.arj =====
echo .===== =====
echo .=== Copyright 1993 Rams' Island Software All Rights Reserved ====
echo .== 1993 Rams' Island Software, 7644 Lakecliff, Parker CO 80134 ==
echo .=================================================================
goto done
rem ----- check arguments -------------------------------------------
:start
if %1. == . goto usage
:argsOK
rem ----- this sysop does no manual handling ------------------------
if not exist vendinfo.diz goto reject
rem ----- reject BBS-limited products, and invalid VENDINFO files ---
vendprcs vendinfo.diz -db -c0 -ta -rl
if errorlevel 40 goto bbsok
if errorlevel 20 goto reject
goto reject
:bbsok
rem ----- find out if it can be repackaged as ZIP -------------------
vendprcs vendinfo.diz -egmc
if errorlevel 51 goto use_orig
vendprcs vendinfo.diz -egc
if errorlevel 51 goto use_orig
vendprcs vendinfo.diz -egmct
if errorlevel 51 goto use_orig
rem ----- repackage as ZIP OK; may I add a BBS ad? ------------------
vendprcs vendinfo.diz -egmas
if errorlevel 51 goto no_ad
copy c:\mystuff\gamhaven.bbs
:no_ad
rem ----- repackage as TEMP.ZIP; move by category with rename -------
pkzip -m temp
pkunzip temp vendinfo.diz
vendprcs vendinfo.diz -p .\temp.zip -rcnl
del vendinfo.diz
goto done
:use_orig
rem ----- move by category with rename ------------------------------
vendprcs vendinfo.diz -p %1 -rcnl
del *.*
goto done
:reject
:bad_vendinfo
rem ----- handle BBS-limited products -------------------------------
del %1
:done