home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
ucbv0100.zip
/
InstallCBV.Cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-06-07
|
12KB
|
281 lines
/* Installation Process For The Ultimate Call Back Verifier For AdeptXbbs */
/* Written And Designed By John Doran - The Nightstalker BBS (212) 486-6281 */
Call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
Call SysLoadFuncs
Say '
'
Say ''
Say '
┌
───────────────────────────────────────────────────────────────────────────┐
'
Say '
│
The Ultimate Call Back Verifier
For AdeptXBBS V0.97Cwb │
'
Say '
│
Written And Designed By John Doran - The NightStalker BBS │
'
Say '
│
For Other AdeptXBBS Utilities Try Calling The NightStalker BBS at │
'
Say '
│
(212) 486-6281
. │
'
Say '
└───────────────────────────────────────────────────────────────────────────
┘
'
CurPath = Directory()
GetDrivePath:
Say ''
Say ''
Say '
Please Enter The
Drive
Which
AdeptXBBS
Is Located:
[
ie: "
C
"
]
.'
Say ''
Parse Upper Pull EIDrive
IDrive = SubStr(EIDrive,1,1)
Say ''
Say ''
Say '
Please Enter The
Directory
Which
AdeptXBBS
Is Located:
[
ie: "
Adept
"
]
.'
Say ''
Parse Upper Pull IPath
OldPath = CurPath
Say ''
Say ''
Say '
Configuring The Ultimate CallBack Verifier... Please Wait...
'
Address CMD 'Echo Off'
AdeptDrive = IDrive':'
AdeptPath = '\'IPath
CBVPath = AdeptPath'\CallBack'
AtStart = IDrive':'AdeptPath'\Menus\AtStart.Cmd'
AtStartBak = IDRive':'AdeptPath'\Menus\AtStart.Cmd.UltiBackUp'
CfgNow:
CBV = 'The Ultimate CallBack Verifier'
Version = '0.1C Alpha'
CfgFile = 'UltiCBV.Cfg'
CfgBack = 'UltiCBV.Cfg.BackUp'
AdeptSearch = IDrive':\'IPath'\Adept.Exe'
GroupFile = IDrive':\'IPath'\System\Groups'
T = 1
FindAdpt = Stream(AdeptSearch,'c','query exists')
If FindAdpt = '' Then
Do
Say ''
Say ''
Say '
AdeptXBBS Was Not Found On Specified Drive/Path. Please Try Again!'
Say ''
Say ''
Signal GetDrivePath
End
Address CMD 'Echo Off'
Address CMD AdeptDrive
Address CMD 'CD \'
Address CMD 'CD 'AdeptPath
SeekFile = IDrive':\'IPath'\CallBack\'CfgFile
FindCfg = Stream(SeekFile,'c','query exists')
If FindCfg = '' Then
Do
Address CMD 'MD CallBack'
Address CMD 'CD CallBack'
Signal InstallFiles
End
If FindCfg <> '' Then
Do
Address CMD 'CD CallBack'
Address CMD 'Copy UltiCBV.CFG UltiCBV.Temp'
OldCfg = 'UltiCBV.Temp'
End
InstallFiles:
CurPath = Directory()
Address CMD "Echo Off"
CopyStr1 = 'Copy 'OldPath'\UltiCBVCfg.Data 'CurPath
CopyStr2 = 'Copy 'OldPath'\InstallCBV.Cmd 'CurPath
CopyStr3 = 'Copy 'OldPath'\CBV_Screens.Data 'CurPath
CopyStr4 = 'Copy 'OldPath'\Utility.Data 'CurPath
CopyStr5 = 'Copy 'OldPath'\History.Text' CurPath
CopyStr6 = 'Copy 'OldPath'\Future.Text' CurPath
CopyStr7 = 'Copy 'OldPath'\File_ID.Diz' CurPath
CopyStr8 = 'Copy 'OldPath'\Registration.Info' CurPath
CopyStr9 = 'Copy 'OldPath'\UltiCBV.Doc' CurPath
DelStr1 = 'Del 'OldPath'\UltiCBVCfg.Data'
DelStr2 = 'Del 'OldPath'\InstallCBV.Cmd'
DelStr3 = 'Del 'OldPath'\CBV_Screens.Data'
DelStr4 = 'Del 'OldPath'\Utility.Data'
DelStr5 = 'Del 'OldPath'\File_ID.Diz'
DelStr6 = 'Del 'OldPath'\History.Text'
DelStr7 = 'Del 'OldPath'\Future.Text'
DelStr8 = 'Del 'OldPath'\UltiCBV.Doc'
DelStr9 = 'Del 'OldPath'\Registration.Info'
DelStr10 = 'Del 'CurPath'\Configure.Cmd > Nul'
DelStr11 = 'Del 'CurPath'\UltiCBV.CMD > Nul'
DelStr12 = 'Del 'CurPath'\UltiCBV.Srx > Nul'
Address CMD CopyStr1
Address CMD CopyStr2
Address CMD CopyStr3
Address CMD CopyStr4
Address CMD CopyStr5
Address CMD CopyStr6
Address CMD CopyStr7
Address Cmd CopyStr8
Address Cmd CopyStr9
Address CMD DelStr1
Address CMD DelStr2
Address CMD DelStr3
Address CMD DelStr4
Address CMD DelStr5
Address CMD DelStr6
Address CMD DelStr7
Address CMD DelStr8
Address CMD DelStr9
Address Cmd DelStr10
Address Cmd Delstr11
Address Cmd DelStr12
Address CMD 'Ren Utility.Data UnZip.Exe'
Address CMD 'UnZip.Exe -o -q CBV_Screens.Data > Nul'
MoveStr1 = 'Copy *.A?? 'IDrive':'AdeptPath'\Text > Nul'
MoveStr2 = 'Del *.A?? > Nul'
MoveStr3 = 'Del CBV_Screens.Data > Nul'
Address CMD MoveStr1
Address CMD MoveStr2
Address CMD MoveStr3
Address CMD 'UnZip.Exe -o -q UltiCBVCfg.Data > Nul'
Address CMD 'Del UltiCBVCfg.Data > Nul'
Address CMD 'Del UnZip.Exe > Nul'
MoveStr4 = 'Copy UltiCBV.Help 'IDrive':'AdeptPath
DelStr13 = 'Del UltiCBV.Help > Nul'
Address CMD MoveStr4
Address Cmd DelStr13
AutoInstall:
Say '
'
Say ''
Say ''
Say "
╒═══════════════════════════════════════════════════════════════════════╕"
Say " │C│"
Say " │
Would You Like To
AutoInstall
The Ultimate CallBack Verifier IntoC
│"
Say " │
AdeptXBBS
Set-Up? If You Choose
[
Y
]
es
, Then A
REXX Command Will
│"
Say " │
Be Added To The End Of Your
ATSTART.CMD
. A Back Up Of Your Original
│"
Say " │
AtStart.Cmd Will Be Created For Safety!
[
Recommended Setting: Y
]
│"
Say " ╘═══════════════════════════════════════════════════════════════════════╛"
Say ''
Say ''
Say "C
Valid Choices Are #'s
[
Y
]
es
Or
[
N
]
o
...
"
Parse Upper Pull AutoIns
If AutoIns = 'Y' Then
Signal GetSysOp
If AutoIns = 'N' Then
Signal AllDone
Signal AutoInstall
GetSysop:
Say '
'
Say ' '
Say '
C
Please Enter
SysOp Name
To Send Email Messages To!'
Say ' '
Say ' '
Say '
┌──────────────────────────────────────────────────────────────────────────┐'
Say "│
You Can Specify The Name Of The
Person/SysOp
Who Is To Recieve AllC
│"
Say "│
E-Mail
And
Notifications
From Callers Using The CallBack Verifier. This
│"
Say "│
Can Either Be The SysOp, CoSysop, Whomever You Choose. Please Make Sure
│"
Say "│
To Type The Name Exactly As It Appears In The
AdeptXBBS
User Records...
│"
Say "│
Otherwise Email And Notifications Will Not Be Recieved By The Recipient
│"
Say "│
It Was Meant For.C
│"
Say "└──────────────────────────────────────────────────────────────────────────┘"
Say " "
Say "C
Valid Choices:
Sysop Name
,
CoSysop Name
"
Say ''
Say ''
Parse Pull ToSysop
If ToSysop = '' Then
Signal GetSysop
AutoInstall2:
If Lines(AtStart) > 0 Then
Do
R = LineIn(AtStart)
R1 = Space(R,0)
If R1 = '/*TheUltimateCallBackVerifierByJohnDoran...AutoInstalled*/' Then
Do
Say "C
UltiCBV Routines Already Installed! Please Delete Them From AtStart.CMD"
Say "C
First, Then Run CONFIGURE.CMD And Reconfigure Email Options!!!"
Say " "
Say "
Press
[
Return
]
To Continue
..."
Say ' '
Say ' '
Parse Pull Dummy
Signal AllDone
End
Signal AutoInstall3
End
TS = Translate(ToSysop,'_',' ')
LogIt = LineOut(AtStart,' ')
LogIt = LineOut(AtStart,'/* ----------====================[*]====================---------- */')
LogIt = LineOut(AtStart,'/* The Ultimate CallBack Verifier By John Doran... AutoInstalled */')
LogIt = LineOut(AtStart,'/* --------------------------------------------------------------- */')
LogIt = LineOut(AtStart,'/* Please Do Not Change Or Modify Any Of These Comments! They Are */')
LogIt = LineOut(AtStart,'/* Needed By InstallCBV.CMD And The Ultimate CallBack Verifier!!!! */')
LogIt = LineOut(AtStart,'/* ----------====================[*]====================---------- */')
LogIt = LineOut(AtStart,' ')
LogIt = LineOut(AtStart,'ARG line')
LogIt = LineOut(AtStart,' ')
LogIt = LineOut(AtStart,'UName = AdeptGetVar(line,1)')
LogIt = LineOut(AtStart,'UFlag1 = AdeptGetVar(line,44)')
LogIt = LineOut(AtStart,'Ver = AdeptCheckBit(line,29,UFlag1)')
LogIt = LineOut(AtStart,' ')
LogIt = LineOut(AtStart,' If UName = "'ToSysop'" Then')
LogIt = LineOut(AtStart,' Do')
LogIt = LineOut(AtStart,' SysAnn = Stream("'IDrive':'AdeptPath'\Text\'TS'.Ans","c","Query Exists")')
LogIt = LineOut(AtStart,' If SysAnn <> "" Then')
LogIt = LineOut(AtStart,' Do')
LogIt = LineOut(AtStart,' Call AdeptMenuType line,51,"'TS'.Asc"')
LogIt = LineOut(AtStart,' Call AdeptMore line')
LogIt = lineOut(AtStart,' Address CMD "Del Text\'TS'.A*"')
LogIt = LineOut(AtStart,' End')
LogIt = LineOut(AtStart,' End')
LogIt = LineOut(AtStart,' ')
LogIt = LineOut(AtStart,' If Ver = 0 Then')
LogIt = LineOut(AtStart,' Call AdeptChainRexx "'IDrive':'AdeptPath'\CallBack\UltiCBV.ERX",line')
LogIt = LineOut(AtStart,' ')
LogIt = LineOut(AtStart,'/* ----------====================[*]====================---------- */')
LogIt = LineOut(AtStart,' ')
Logit = LineOut(AtStart,'Exit')
AllDone:
Say '
'
Say '
┌──────────────────────────────────────────────────────────────────────────┐
'
Say '
│
│
'
Say '
│
│
'
Say '
│
Thank You For Using
The Ultimate CallBack Verifier
For AdeptXBBS.
│
'
Say '
│
│
'
Say '
│
│
'
Say '
│
Your Custom Configuration Has Been Saved And Written To Disk. You
│
'
Say '
│
Should Now Be Able To Enjoy The Benefits Of Using This Utility.
│
'
Say '
│
│
'
Say '
│
│
'
Say '
│
For More REXX Utilities For AdeptXBBS, Try Calling The NightStalker
│
'
Say '
│
BBS At (212) 486-6281.
│
'
Say '
│
│
'
Say '
└
──────────────────────────────────────────────────────────────────────────┘
'
Say ''
Say ''
Say '
Please Run
CONFIGURE
To Insure Your UltiCBV Configuration Is Correct!'
Exit