home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
RBTCH220.ZIP
/
EXAMPLE.ZIP
/
NEW-PHZ.ARJ
/
MAKE-PHZ.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-10-30
|
3KB
|
116 lines
@echo off
if not exist parts.lab goto :Files1
if "%1"=="" goto :Syntax
if "%2"=="" goto :Syntax
if "%3"=="" goto :Syntax
if "%4"=="" goto :Syntax
if "%5"=="" goto :Syntax
pkunzip parts.lab>NUL
if not exist top goto :Files2
if not exist bat1 goto :Files2
if not exist bat2 goto :Files2
if not exist arj goto :Files2
if not exist zip goto :Files2
echo set ARCDRV=%1>part2
echo set ARCDIR=%2>>part2
echo set ARCLOG=%3>>part2
echo set ARCPORT=com%4>>part2
if "%5"=="A" goto :ARJ
if "%5"=="a" goto :ARJ
if "%5"=="Z" goto :ZIP
if "%5"=="z" goto :ZIP
goto :Syntax
:ARJ
copy top+part2+bat1+arj+bat2 phase1c.bat>NUL
goto :End
:ZIP
copy top+part2+bat1+zip+bat2 phase1c.bat>NUL
goto :End
:FILES1
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo Place the file PARTS.LAB in this directory with this batch file
echo and re-enter your command line.
echo.
echo.
echo.
echo.
echo.
echo Press any key when you understand the above.
pause>NUL
goto :Bye
:FILES2
cls
echo.
echo.
echo.
echo.
echo.
echo You are missing the 5 parts of the batch file. They are as follows:
echo ARJ, BAT1, BAT2, TOP, and ZIP
echo.
echo.
echo.
echo.
echo.
echo.
echo Press any key when you understand the above.
pause>NUL
goto :Bye
:SYNTAX
cls
echo.
echo.
echo.
echo.
echo.
echo Proper syntax is as follows:
echo Make-Phz D: test c:\arcs-lab.log 2 A
echo.
echo Param 1 - "D:" is the work drive (preferably a RAM disk or fast hard drive)
echo Param 2 - "test" is the work subdir to be created and deleted for phase1c.bat
echo Param 3 - "c:\rbbs\arcs-lab.log" is the log file to be created.
echo Param 4 - "2" is the Com Port you are using.
echo Param 5 - "A" is either A (for ARJ conversions) or Z (for ZIP conversions).
echo.
echo Parameter 5 is the type of file extension you wish the files to be converted
echo to when all of the tests have passed.
echo.
echo.
echo.
echo.
echo.
echo.
echo Press a key when you understand the above.
pause>NUL
goto :Bye
:END
cls
echo.
echo.
echo.
echo.
echo.
echo Your PHASE1C.BAT has been created! Please look it over to ensure there
echo are no errors in it before you run it. Also, ensure that you have made
echo a good back up of your previous .BAT file before replacing it with this
echo one. Good luck, and happy BBSing!
echo.
echo.
echo.
echo.
echo.
echo.
del top>NUL
del part2>NUL
del bat1>NUL
del arj>NUL
del zip>NUL
del bat2>NUL
:BYE