home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PCBOARD
/
DLPRM100.ZIP
/
INSTALL.BAT
< prev
Wrap
DOS Batch File
|
1994-03-14
|
2KB
|
72 lines
@echo off
rem %1 = filename of PCBTEXT to modify
rem %2 = path to where PPE was unzipped to
rem %3-%9 = command line parameters
if "%1"=="" goto MissPCBTXT
if "%2"=="" goto MissPPELoc
if not exist %1 goto TXTNotFnd
if not exist %2\DLPROMPT.PPE goto PPENotFnd
goto Modify
:TXTNotFnd
echo ┌────────────────────────────────────────────────────────────────────────┐
echo │ The filename you specified for PCBTEXT could not be found. │
echo └────────────────────────────────────────────────────────────────────────┘
goto end
:PPENotFnd
if exist %2DLPROMPT.PPE goto end
echo ┌────────────────────────────────────────────────────────────────────────┐
echo │ Could not find PPE in the installation directory specified by you. │
echo └────────────────────────────────────────────────────────────────────────┘
goto end
:MissPCBTXT
echo ┌────────────────────────────────────────────────────────────────────────┐
echo │ You must specify the PCBTEXT file to edit (e.g., C:\PCB\GEN\PCBTEXT) │
echo └────────────────────────────────────────────────────────────────────────┘
goto Usage
:MissPPELoc
echo ┌────────────────────────────────────────────────────────────────────────┐
echo │ You must specify the directory where your PPE is (e.g., C:\PCB\PPE\) │
echo └────────────────────────────────────────────────────────────────────────┘
goto Usage
:Usage
echo.
echo Syntax:
echo.
echo INSTALL D:\PATH\PCBTEXT D:\PCB\PPE /EXPERT /SYSOP
echo.
echo The /EXPERT and /SYSOP parameters are not required but they are case
echo sensitive.
echo.
echo The first parameter is the location of your PCBTEXT file. The second
echo parameter is the location where you uncompressed the DLPROMPT archive.
echo.
goto end
:Modify
if "%3"=="" SET PARAMS=
if "%3"=="/SYSOP" SET PARAMS= /SYSOP
if "%3"=="/sysop" SET PARAMS= /SYSOP
if "%3"=="/EXPERT SET PARAMS= /EXPERT
if "%3"=="/expert" SET PARAMS= /EXPERT
if "%4"=="/SYSOP" SET PARAMS= %PARAMS% /SYSOP
if "%4"=="/sysop" SET PARAMS= %PARAMS% /SYSOP
if "%4"=="/EXPERT" SET PARAMS= %PARAMS% /EXPERT
if "%4"=="/expert" SET PARAMS= %PARAMS% /EXPERT
MKPCBTXT %1 /I:61 "!%2DLPROMPT.PPE%PARAMS%"
SET PARAMS=
:end