home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
adm098wb.zip
/
install.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-05-04
|
2KB
|
92 lines
/* Begin Install.CMD for Adeptmail */
'@Echo off'
'@cls'
say ""
say ""
say "This is the Install-Routine of AdeptMail Version 0.98wb"
say ""
adummy = ''
adummy = charout(,'Do you wish to continue with this install? [y/N] ')
parse upper pull adummy
if left(adummy,1) \= 'Y' then do
exit
end
rc = stream('adeptmail.exe','c','query exists')
if rc = '' then
do
say 'Sorry, AdeptMail.Exe not found. Must not be right directory. Terminating.'
exit
end
rc = stream('adeptmail.hlp','c','query exists')
if rc = '' then
do
say 'Sorry, AdeptMail.Hlp not found. Must not be right directory. Terminating.'
exit
end
rc = stream('adeptmail.ctl','c','query exists')
if rc = '' then
do
say 'Sorry, AdeptMail.Ctl not found. Must not be right directory. Terminating.'
exit
end
curdir = directory()
do
say ''
say 'Please enter the drive letter to install AdeptMail (Ex. C:)'
say 'You MUST enter the full drive letter, C: <- Notice the colon'
say ''
dummy = charout(,'Your choice : ')
parse upper pull dummy
ADDRESS CMD dummy
ADDRESS CMD "CD\"
say ''
say 'Please enter the pathname to install AdeptMail (Ex. \AdeptMail)'
say 'You MUST enter the full pathname, \AdeptMail <- Notice the leading backslash'
say ''
dummypath = charout(,'Your choice : ')
parse upper pull dummypath
ADDRESS CMD "MD" dummypath "2>NUL"
ADDRESS CMD "CD" dummypath
olddir = curdir
curdir = dummy || dummypath
say ''
say 'Current sub-directory: 'curdir
say ''
dum = charout(, 'Install AdeptMail into the current sub-directory? [Y/n] ')
parse upper pull dummy
if left(dummy,1) = 'N' then exit
say ''
end
say ''
say 'Installing AdeptMail, copying files.. Please wait...'
InsCmd = copy olddir'\*>NUL'
if olddir \= curdir then
do
ADDRESS CMD InsCmd
end
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
say "Creating AdeptMail object..."
title = "AdeptMail for AdeptXBBS"
classname = 'WPProgram'
location = '<WP_DESKTOP>'
setup = 'EXENAME='curdir'\AdeptMail.Exe;STARTUPDIR='curdir''
result=SysCreateObject(classname,title,location,setup,f)
'@AdeptMail.exe'
say 'Thank you for choosing AdeptMail!'