home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
dist.zip
/
install.cmd
next >
Wrap
OS/2 REXX Batch file
|
1994-12-12
|
1KB
|
38 lines
/* Install.cmd */
/* Signature/2 auf der WPS installieren */
/* Reinhard Fischer, 24.11.94 */
call RxFuncAdd 'SysCreateObject', 'RexxUtil', 'SysCreateObject'
call RxFuncAdd 'SysFileTree', 'RexxUtil', 'SysFileTree'
call RxFuncAdd 'SysCls', 'RexxUtil', 'SysCls'
call SysCls
pgm=Directory() || '\' || 'SIGN.EXE'
/* ist das Programm überhaupt vorhanden */
rc=SysFileTree(pgm,datei,'F')
if datei.0 !> 0 || rc=0
then do
say 'Install must be started from the Signature/2 Home Directory'
say 'Installation unsuccesful!'
exit
end /* Do */
say ''
say 'Creating Program-Object to start Signature/2 on WPS'
say ''
/* Parameter für SysCreateObject: */
param ='EXENAME=' pgm
/* Objekt auf der WPS anlegen */
IF SysCreateObject("WPPROGRAM","Signature/2","<WP_DESKTOP>",param)
THEN DO
say 'Object created on WPS!'
say 'Installation successful!'
END
ELSE DO
say 'Could not create object on WPS!'
say 'Installation unsuccessful!'
END