home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Professional
/
OS2PRO194.ISO
/
os2
/
com
/
bbs
/
vbbs2_b1
/
install.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-05-05
|
2KB
|
95 lines
@echo off
cls
ren 0.nf %1.nf
ren .nf 0.nf
ren %1.nf 1.nf
ren 0.nfl %2.nfl
ren .nfl 0.nfl
ren %2.nfl 1.nfl
cls
if not exist 1.nf goto nodrive
if not exist 1.nfl goto nodrive
ren 1.nf 0.nf
ren 1.nfl 0.nfl
if exist %1:\%2\bbs.exe goto dosup
if exist %1:\%2\main.cfg goto update
if exist %1:\%2\vbbs.exe goto update
if exist %1:\%2\database.cfg goto update
goto new
:update
cls
echo.
echo.
echo.
echo UPDATING EXISTING INSTALLATION......
echo.
echo.
unz os2stuff.vbs -snfw -o *.exe %1:\%2
unz os2stuff.vbs -snfw -o readme.cmd %1:\%2
unz os2stuff.vbs -snfw -o *.dif %1:\%2
%1:
cd\%2
goto donezip
:dosup
cls
echo.
echo.
echo.
echo UPDATING EXISTING DOS INSTALLATION......
echo.
echo.
del %1:\%2\bbs.exe
unz os2stuff.vbs -snfw -o *.exe %1:\%2
unz os2stuff.vbs -snfw -o *.cmd %1:\%2
unz os2stuff.vbs -snfw -o *.dif %1:\%2
%1:
cd\%2
goto donezip
:new
cls
echo.
echo.
echo.
echo NEW INSTALLATION IN PROGRESS......
echo.
echo.
md %1:\%2
md %1:\%2\temp
md %1:\%2\sysop
md %1:\%2\data
md %1:\%2\misc
unz os2stuff.vbs -d -snfw %1:\%2
%1:
cd\%2
vnet /a networkid=1
vcom v\start
cls
goto donezip
:donezip
echo.
echo.
echo Please Review all VCONFIG Settings NOW
echo.
echo.
vconfig
cls
echo.
call readme
type mail_reg.os2 |more
goto end
:nodrive
ren .nf 0.nf
ren .nfl 0.nfl
cls
echo.
echo.
echo.
echo Enter the Drive letter followed by the directory
echo in which you want your VBBS-OS/2 to reside - example:
echo.
echo INSTALL C VBBS2
echo.
echo NOT INSTALL C:\VBBS2
echo.
:end