home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
lanstart.zip
/
LANSINST.CMD
next >
Wrap
OS/2 REXX Batch file
|
1993-08-19
|
928b
|
39 lines
/* LanStart/2 */
/* Installation file LansInst.Cmd */
Call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs';
Call SysLoadFuncs;
'@echo off'
say 'Installation of LanStart/2'
say '(c) Kim Kruse Hansen , 1993'
say ''
say 'Press letter of bootdrive or ESC to abort'
bootdrive = SysGetKey('NOECHO')
if c2d(bootdrive) \= '27' then
do
'copy LanStart.dll ' bootdrive||':\os2\dll'
if rc = 0 then
do
rc=SysDeregisterObjectClass('LanStart');
rc=SysRegisterObjectClass('LanStart','LanStart');
if rc = 1 then
do
rc=SysCreateObject('LanStart','LanStartup/2','<WP_DESKTOP>', ,
'OBJECTID=<ID_LANSTARTUP>;');
if rc = 1 then
say 'Installation is complete'
else
say 'Error : Cant create object'
end
else
say 'Error : Cant register class'
end
else
say 'Error : Cant copy dll'
end
else
say 'Installtion aborted'