home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: InfoMgt
/
InfoMgt.zip
/
alrmclk2.zip
/
acinst.cmd
next >
Wrap
OS/2 REXX Batch file
|
1995-04-23
|
3KB
|
103 lines
/* */
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
call SysCls
pos = SysCurPos(5,0)
say '┌───────────────────────────────────────────┐'
say '│ │'
say '│ Thank you for trying Alarm Clock │'
say '│ │'
say '│ If you are upgrading from version 2.9 be │'
say '│ sure and run the conversion utility │'
say '│ ACUPGRAD.EXE before running Alarm Clock. │'
say '│ │'
say '│ Your current event files will be changed │'
say '│ to the new format. You should still │'
say '│ review and edit the entries to take │'
say '│ advantage of the new features in version │'
say '│ 3.0. │'
say '│ │'
say '│ Press any key to continue... │'
say '│ │'
say '└───────────────────────────────────────────┘'
call SysGetKey 'NOECHO'
call SysCls
pos = SysCurPos(5,0)
say 'Enter the target drive and directory then press <ENTER>'
PULL targdrv
say ' '
say 'Enter the source drive and directory then press <ENTER>'
PULL srcepath
say ' '
say 'Installing Alarm Clock in 'targdrv
call STARTINSTALL
call INSTALRMCLK
say ' '
say '┌───────────────────────────────────────────┐'
say '│ │'
say '│ Alarm Clock INSTALLED │'
say '│ │'
say '│ Be sure that the selected directory is in │'
say '│ your LIBPATH= statement or .\ is in the │'
say '│ LIBPATH. See your CONFIG.SYS file. │'
say '│ │'
say '└───────────────────────────────────────────┘'
exit
STARTINSTALL:
call SysFileTree srcepath, 'file', 'D'
if file.0 = 0 then do
say 'No files found in 'srcepath
exit
end
call SysFileTree targdrv, 'file', 'D'
if file.0 = 0 then do
call CREATEPATH
end /* Do */
return /* STARTINSTALL */
INSTALRMCLK:
"@echo off"
copy srcepath'\*.* 'targdrv
settings='OBJECTID=<ALARMCLK_FOLDER>;ICONFILE='srcepath'\folder.ico'
call SysCreateObject 'WPFolder', 'Alarm Clock', '<WP_DESKTOP>', settings, 'REPLACE'
settings='PROGTYPE=PM;EXENAME='targdrv'\ALRMCLK2.EXE;OBJECTID=<ALRMCLK2>;STARTUPDIR='targdrv
call SysCreateObject 'WPProgram', 'Alarm Clock', '<ALARMCLK_FOLDER>', settings, 'REPLACE'
settings='PROGTYPE=PM;EXENAME=VIEW.EXE;OBJECTID=<ACHELP>;STARTUPDIR='targdrv';PARAMETERS=ALRMCLK2.INF'
call SysCreateObject 'WPProgram', 'Alarm Clock Help', '<ALARMCLK_FOLDER>', settings, 'REPLACE'
echo on
return
CREATEPATH:
do I = 1 to 5 by 1
say ' '
say 'Press Y to create the directory 'targdrv
say 'Press N to end the install'
rc = SysGetKey()
say ' '
say ' '
select
when TRANSLATE(rc) = 'Y' then do
rc = SysMkDir(targdrv)
if rc \= 0 then do
say 'Error Creating 'targdrv
say 'Install Ended unsuccessfully'
beep(454, 100)
exit
end
leave
end /* Do */
when TRANSLATE(rc) = 'N' then leave
otherwise beep(454, 100)
end /* select */
end /* do */
return /* CREATEPATH */