home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
xbbsos2.zip
/
install.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-01-22
|
4KB
|
142 lines
/*
* simple 'install' for XBBS-OS/2 PM
* actually just creates a folder and some objects
*/
existed = ''
rc = stream('xbbs3.exe','c','query exists')
if rc = '' then
do
say 'Sorry, XBBS3.EXE not found. Must not be right directory. Terminating.'
exit
end
/* save current directory */
curdir = directory()
/* load rexx utility functions */
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
/* say it, then do it */
say "Creating XBBS-OS/2 folder and objects..."
/* first, create XBBS-OS/2 folder */
title = "XBBS-OS/2"
classname = 'WPFolder'
location = '<WP_DESKTOP>'
setup = 'OBJECTID=<XBBS_Folder>;OPEN=DEFAULT'
result=SysCreateObject(classname,title,location,setup,f)
if result = 0 then
do
existed = 'TRUE'
say ''
say 'The XBBS-OS/2 folder already exists.'
say 'Should I update the objects? (Y/N)'
parse upper pull dummy
if left(dummy,1) = 'N' then exit
say ''
end
/* now, create program objects in folder */
title = "XBBS-OS/2"
classname = 'WPProgram'
location = '<XBBS_Folder>'
setup = 'EXENAME='curdir'\BBS.CMD;STARTUPDIR='curdir
if existed = '' then setup = setup';PARAMETERS=1 0'
call SysCreateObject classname,title,location,setup,u
rc = stream('XSENDPM.EXE','c','query exists')
if rc \= '' then
do
title = "Send files"
classname = 'WPProgram'
location = '<XBBS_Folder>'
setup = 'EXENAME='curdir'\XSENDPM.EXE;STARTUPDIR='curdir
if existed = '' then setup = setup';PARAMETERS=%* 'curdir
call SysCreateObject classname,title,location,setup,u
end
rc = stream('filedit.exe','c','query exists')
if rc \= '' then
do
title = "File area editor"
classname = 'WPProgram'
location = '<XBBS_Folder>'
setup = 'EXENAME='curdir'\FILEDIT.EXE;STARTUPDIR='curdir
call SysCreateObject classname,title,location,setup,u
end
rc = stream('msgedit.exe','c','query exists')
if rc \= '' then
do
title = "Msg area editor"
classname = 'WPProgram'
location = '<XBBS_Folder>'
setup = 'EXENAME='curdir'\MSGEDIT.EXE;STARTUPDIR='curdir
call SysCreateObject classname,title,location,setup,u
end
rc = stream('libedit.exe','c','query exists')
if rc \= '' then
do
title = "Library area editor"
classname = 'WPProgram'
location = '<XBBS_Folder>'
setup = 'EXENAME='curdir'\LIBEDIT.EXE;STARTUPDIR='curdir';
call SysCreateObject classname,title,location,setup,u
end
rc = stream('xuserpm.exe','c','query exists')
if rc \= '' then
do
title = "User editor"
classname = 'WPProgram'
location = '<XBBS_Folder>'
setup = 'EXENAME='curdir'\XUSERPM.EXE;STARTUPDIR='curdir
call SysCreateObject classname,title,location,setup,u
end
rc = stream('README.BBS','c','query exists')
if rc \= '' then
do
title = "ReadMe"
classname = 'WPShadow'
location = '<XBBS_Folder>'
setup = 'SHADOWID='rc
call SysCreateObject classname,title,location,setup,u
end
title = "Docs"
classname = 'WPShadow'
location = '<XBBS_Folder>'
setup = 'SHADOWID='curdir'\DOCS'
call SysCreateObject classname,title,location,setup,u
title = "BBS Menus"
classname = 'WPShadow'
location = '<XBBS_Folder>'
setup = 'SHADOWID='curdir'\MENU'
call SysCreateObject classname,title,location,setup,u
title = "BBS Help"
classname = 'WPShadow'
location = '<XBBS_Folder>'
setup = 'SHADOWID='curdir'\HELP'
call SysCreateObject classname,title,location,setup,u
title = "BBS Text"
classname = 'WPShadow'
location = '<XBBS_Folder>'
setup = 'SHADOWID='curdir'\TEXT'
call SysCreateObject classname,title,location,setup,u
say "I'm done now."