home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
fma100.zip
/
install.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-01-04
|
2KB
|
106 lines
/* Begin Install.CMD for Fileman */
'@Echo off'
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('filemanp.exe','c','query exists')
if rc = '' then
do
say 'Sorry, Filemanp.Exe not found. Must not be right directory. Terminating.'
exit
end
rc = stream('fileman.hlp','c','query exists')
if rc = '' then
do
say 'Sorry, Fileman.Hlp not found. Must not be right directory. Terminating.'
exit
end
rc = stream('english.dll','c','query exists')
if rc = '' then
do
say 'Sorry, English.Dll not found. Must not be right directory. Terminating.'
exit
end
rc = stream('german.dll','c','query exists')
if rc = '' then
do
say 'Sorry, German.Dll not found. Must not be right directory. Terminating.'
exit
end
curdir = directory()
do
say ''
say 'Please enter the drive letter to install FileMan (Ex. C:)'
say 'You MUST enter the full drive letter, C: <- Notice the colon'
say '--'
parse upper pull dummy
ADDRESS CMD dummy
ADDRESS CMD "CD\"
ADDRESS CMD "MD FileMan 2>NUL"
ADDRESS CMD "CD FileMan"
olddir = curdir
curdir = dummy'\FileMan'
say ''
say 'Current sub-directory: 'curdir
say ''
say 'Install FileMan into the current'
dum = charout(, 'sub-directory? [Y/n] ')
parse upper pull dummy
if left(dummy,1) = 'N' then exit
say ''
end
say ''
say 'Installing FileMan, copying files.. Please wait...'
InsCmd = copy olddir'\*>NUL'
if olddir \= curdir then
do
ADDRESS CMD InsCmd
end
say ''
say 'Choose your favourite Language ...'
say ''
say 'G - German'
say 'E - English'
say ''
dummy = charout(, 'Language [G/e] ? ')
parse upper pull dummy
if left(dummy,1) = 'G' then language = "GERMAN.DLL"
if left(dummy,1) = 'E' then language = "ENGLISH.DLL"
if left(dummy,1) = '' then language = "GERMAN.DLL"
say ''
InsCmd = copy olddir'\'language curdir'\FileMan.Dll>NUL'
if olddir \= curdir then
do
ADDRESS CMD InsCmd
end
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
say "Creating FileMan object..."
title = "FileManager for Adept"
classname = 'WPProgram'
location = '<WP_DESKTOP>'
setup = 'EXENAME='curdir'\FileManP.Exe;STARTUPDIR='curdir''
result=SysCreateObject(classname,title,location,setup,f)
'@filemanp.exe'
say 'Thank you for choosing FileMan!'